Linux Kernel Loop Device Overflow Vulnerability in Loop Configuration via ioctl

Vulnerability

A vulnerability in the Linux kernel's loop device handling can lead to an overflow when userspace configures a loop device using an ioctl call. The issue arises because the loop device's offset is copied from a userspace structure without proper validation, allowing for an overflow that triggers a warning in the I/O mapping iterator. This vulnerability affects the loop device driver in the Linux kernel.

Impact

Exploitation of this vulnerability causes an overflow in the loop device's offset, leading to a warning being triggered in the I/O mapping iterator. This could potentially be exploited to manipulate I/O operations in an unintended manner.

Reproduction

The vulnerability can be reproduced by sending an ioctl call to a loop device with a configuration that includes an offset value designed to cause an overflow. The loop device driver will then copy this offset from the userspace structure to the device's internal representation without checking for validity, leading to the overflow condition.

Added: Jun 18, 2025, 8:49 PM
Updated: Jun 18, 2025, 8:49 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.3
remediation
7.7
relevance
0.2
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.