Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99883

published high CVSS 3.1 · 7.3

loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()

Published
30 Nov 2026, 13:17:56 UTC
Updated
01 Dec 2026, 05:44:00 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 552b50b04967952fd4464d414fb97d6c384be36e · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a92d760c0eb19b8a826ff2a31ff900788e482208 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7d7c6d799e3ae3c12aaddb3b1ec4b54b717ed4ea · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2e9d353801f64f792d769ce4ec67398b139dafeb · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 0a49ac3e05864a0a2758b621d97ff44e94cf45dc · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9e48dbf6841e67c311a4099b768b4e331eae15c4 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 6fe40c314fa078f06152f0f1f02c73f2e414de7a · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 87409eedc543d288cdd49c2174f7d61eca7b8db5 · 0 to < 5.10.275 · 0 to < 5.15.226 · 0 to < 6.1.193 · 0 to < 6.6.163 · 0 to < 6.12.117 · 0 to < 6.18.63 · 0 to < 7.3.4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.10.275 through 5.10.* · 5.15.226 through 5.15.* · 6.1.193 through 6.1.* · 6.6.163 through 6.6.* · 6.12.117 through 6.12.* · 6.18.63 through 6.18.* · 7.3.4 through 7.3.* · 7.4-rc1 and later · Other versions: affected Unaffected Not stated Linux

Description

In the Linux kernel, the following vulnerability has been resolved: loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl() lo_ioctl() checks for (mode & BLK_OPEN_WRITE) || capable(CAP_SYS_ADMIN) before allowing LOOP_SET_STATUS or LOOP_SET_STATUS64, but not lo_compat_ioctl(), the handler used by 32-bit user space on 64-bit kernels. As a result, on 64-bit kernels with CONFIG_COMPAT=y, a 32-bit unprivileged user-space process holding a read-only (O_RDONLY) file descriptor to an active /dev/loopN device can issue a compat LOOP_SET_STATUS ioctl to modify lo_offset, clear lo_sizelimit to 0 (exposing backing-file data past the configured limit), or alter lo_flags. Enforce the same (mode & BLK_OPEN_WRITE) || capable(CAP_SYS_ADMIN) check on LOOP_SET_STATUS in lo_compat_ioctl().

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.3 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
Scenarios
en: AV:L - The attacker issues a 32-bit ioctl(LOOP_SET_STATUS) on a local /dev/loopN fd: compat_sys_ioctl -> compat_blkdev_ioctl -> blkdev_common_ioctl returns -ENOIOCTLCMD -> lo_compat_ioctl -> loop_set_status_compat -> loop_set_status. An x86_64 process can do this through int $0x80. The compat_loop_info comes from local userspace, and no remote protocol carries it. AC:L - Once the attacker holds the read-only fd, one deterministic ioctl is enough. lo_compat_ioctl calls loop_set_status_compat without the (mode & BLK_OPEN_WRITE) || capable(CAP_SYS_ADMIN) check that lo_ioctl applies to LOOP_SET_STATUS/STATUS64. Compat/ia32 support is enabled by default in distro kernels, and there is no race and no dependence on device state. PR:L - The attacker needs an O_RDONLY fd on a bound loop device and no CAP_SYS_ADMIN in the initial namespace. Default nodes are root:disk 0660 and the disk group already has write access, so the holder who gains is someone given read-only access, e.g. docker --device ...:r, a kubelet readOnly raw-block volume (cgroup 'r') or systemd DeviceAllow= r. A user namespace cannot open the node. UI:N - The attacker issues the compat ioctl on their own read-only descriptor. No administrator, mount or other user has to act at the time of the attack. S:U - The bug bypasses the loop driver's own read/write gate. The effects land on the loop device and its backing file, both managed by the same kernel, with no VM or IOMMU boundary crossed. C:H - loop_info64_from_compat forces lo_sizelimit=0, and the attacker can set lo_offset=0. lo_calculate_size then grows the capacity to the whole backing file, and do_req_filebacked reads at sector<<9 + lo_offset. On a loop device limited to part of a disk image or /dev/sdX with losetup -o/--sizelimit, the attacker's read-only fd can then read every byte outside that range, such as other partitions. I:L - The attacker can change lo_offset (0..INT_MAX), set or clear AUTOCLEAR, set PARTSCAN and change lo_file_name on a device they may only read. The new offset moves every other user's I/O through do_req_filebacked, so a mounted filesystem's writes land in the wrong part of the backing file. The attacker picks where those writes land but not their content, and cannot clear LO_FLAGS_READ_ONLY. A:H - An offset past EOF makes lo_calculate_size return 0, and loop_set_size shrinks the disk to 0 sectors; any other offset makes a mounted filesystem read metadata from the wrong place. Either way every user of the shared loop device loses access, and the attacker can repeat it whenever it is undone. Setting AUTOCLEAR also detaches the device on last close.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 552b50b04967952fd4464d414fb97d6c384be36e (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a92d760c0eb19b8a826ff2a31ff900788e482208 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7d7c6d799e3ae3c12aaddb3b1ec4b54b717ed4ea (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2e9d353801f64f792d769ce4ec67398b139dafeb (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 0a49ac3e05864a0a2758b621d97ff44e94cf45dc (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9e48dbf6841e67c311a4099b768b4e331eae15c4 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 6fe40c314fa078f06152f0f1f02c73f2e414de7a (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 87409eedc543d288cdd49c2174f7d61eca7b8db5 (affected · git)0 to < 5.10.275 (affected · semver)0 to < 5.15.226 (affected · semver)0 to < 6.1.193 (affected · semver)0 to < 6.6.163 (affected · semver)0 to < 6.12.117 (affected · semver)0 to < 6.18.63 (affected · semver)0 to < 7.3.4 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()

Provenance

Schema
5.2
Searchable
yes
Content hash
274f7c79ee6b2a28044cd16b97ad7380b62f62a2e5f54090f5147c2dcf3a7807
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected