# CVE-2026-99883: loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-30T13:17:56.957Z
- Modified: 2026-12-01T06:17:55.283Z
- Assigned by: 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 552b50b04967952fd4464d414fb97d6c384be36e; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a92d760c0eb19b8a826ff2a31ff900788e482208; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7d7c6d799e3ae3c12aaddb3b1ec4b54b717ed4ea; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2e9d353801f64f792d769ce4ec67398b139dafeb; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0a49ac3e05864a0a2758b621d97ff44e94cf45dc; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9e48dbf6841e67c311a4099b768b4e331eae15c4; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6fe40c314fa078f06152f0f1f02c73f2e414de7a; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 87409eedc543d288cdd49c2174f7d61eca7b8db5; before 5.10.275; before 5.15.226; before 6.1.193; before 6.6.163; and 3 more (not affected: from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/552b50b04967952fd4464d414fb97d6c384be36e>
- <https://git.kernel.org/stable/c/a92d760c0eb19b8a826ff2a31ff900788e482208>
- <https://git.kernel.org/stable/c/7d7c6d799e3ae3c12aaddb3b1ec4b54b717ed4ea>
- <https://git.kernel.org/stable/c/2e9d353801f64f792d769ce4ec67398b139dafeb>
- <https://git.kernel.org/stable/c/0a49ac3e05864a0a2758b621d97ff44e94cf45dc>
- <https://git.kernel.org/stable/c/9e48dbf6841e67c311a4099b768b4e331eae15c4>
- <https://git.kernel.org/stable/c/6fe40c314fa078f06152f0f1f02c73f2e414de7a>
- <https://git.kernel.org/stable/c/87409eedc543d288cdd49c2174f7d61eca7b8db5>

## Sources

- CVE List: [CVE-2026-99883](https://www.cve.org/CVERecord?id=CVE-2026-99883), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-99883](https://nvd.nist.gov/vuln/detail/CVE-2026-99883), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-99883 · Whole record: https://cve.day/CVE-2026-99883.json · Rebuilt by cve.day 2026-12-01T06:32:27.929Z
