{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99883","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.441Z","datePublished":"2026-11-30T13:17:56.957Z","dateUpdated":"2026-12-01T05:44:00.462Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:44:00.462Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nloop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()\n\nlo_ioctl() checks for (mode & BLK_OPEN_WRITE) || capable(CAP_SYS_ADMIN)\nbefore allowing LOOP_SET_STATUS or LOOP_SET_STATUS64, but not\nlo_compat_ioctl(), the handler used by 32-bit user space on 64-bit\nkernels.\n\nAs a result, on 64-bit kernels with CONFIG_COMPAT=y, a 32-bit\nunprivileged user-space process holding a read-only (O_RDONLY) file\ndescriptor to an active /dev/loopN device can issue a compat\nLOOP_SET_STATUS ioctl to modify lo_offset, clear lo_sizelimit to 0\n(exposing backing-file data past the configured limit), or alter\nlo_flags.\n\nEnforce the same (mode & BLK_OPEN_WRITE) || capable(CAP_SYS_ADMIN) check\non LOOP_SET_STATUS in lo_compat_ioctl()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","baseScore":7.3,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/loop.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"552b50b04967952fd4464d414fb97d6c384be36e","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"a92d760c0eb19b8a826ff2a31ff900788e482208","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"7d7c6d799e3ae3c12aaddb3b1ec4b54b717ed4ea","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"2e9d353801f64f792d769ce4ec67398b139dafeb","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"0a49ac3e05864a0a2758b621d97ff44e94cf45dc","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"9e48dbf6841e67c311a4099b768b4e331eae15c4","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"6fe40c314fa078f06152f0f1f02c73f2e414de7a","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"87409eedc543d288cdd49c2174f7d61eca7b8db5","status":"affected","versionType":"git"},{"version":"0","lessThan":"5.10.275","status":"affected","versionType":"semver"},{"version":"0","lessThan":"5.15.226","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.1.193","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.6.163","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.12.117","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.18.63","status":"affected","versionType":"semver"},{"version":"0","lessThan":"7.3.4","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/loop.c"],"versions":[{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/552b50b04967952fd4464d414fb97d6c384be36e"},{"url":"https://git.kernel.org/stable/c/a92d760c0eb19b8a826ff2a31ff900788e482208"},{"url":"https://git.kernel.org/stable/c/7d7c6d799e3ae3c12aaddb3b1ec4b54b717ed4ea"},{"url":"https://git.kernel.org/stable/c/2e9d353801f64f792d769ce4ec67398b139dafeb"},{"url":"https://git.kernel.org/stable/c/0a49ac3e05864a0a2758b621d97ff44e94cf45dc"},{"url":"https://git.kernel.org/stable/c/9e48dbf6841e67c311a4099b768b4e331eae15c4"},{"url":"https://git.kernel.org/stable/c/6fe40c314fa078f06152f0f1f02c73f2e414de7a"},{"url":"https://git.kernel.org/stable/c/87409eedc543d288cdd49c2174f7d61eca7b8db5"}],"title":"loop: check for read-write open mode on LOOP_SET_STATUS in lo_compat_ioctl()","x_generator":{"engine":"bippy-1.2.0"}}}}