KernelScan.io

HIGH

isofs RockRidge OOB

CVE-2026-46303

CVSS 8.2 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

KernelScan AI4.3MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: isofs: validate Rock Ridge CE continuation extent against volume size rock_continue() reads rs->cont_extent verbatim from the Rock Ridge CE record and passes it to sb_bread() without checking that the block number is within the mounted ISO 9660 volume. commit e595447e177b ("[PATCH] rock.c: handle corrupted directories") added cont_offset and cont_size rejection for the CE continuation but did not validate the extent block number itself. commit f54e18f1b831 ("isofs: Fix infinite looping over CE entries") later capped the CE chain length at RR_MAX_CE_ENTRIES = 32 but again left the block number unchecked. With a crafted ISO mounted via udisks2 (desktop optical auto-mount) or via CAP_SYS_ADMIN mount, rs->cont_extent can therefore point at an out-of-range block or at blocks belonging to an adjacent filesystem on the same block device. sb_bread() on an out-of-range block returns NULL cleanly via the block layer EIO path, so there is no memory-safety violation. For in-range reads of adjacent- filesystem data, the CE buffer is parsed as Rock Ridge records and only the text of SL sub-records reaches userspace through readlink(), which makes the info-leak channel narrow and difficult to exploit; still, rejecting the malformed CE outright matches the rejection shape already present in the same function for cont_offset and cont_size. Add an ISOFS_SB(sb)->s_nzones bounds check to rock_continue() next to the existing offset/size rejection, printing the same corrupted-directory-entry notice.

02

Engine v0.2.0

Risk summary

A crafted ISO 9660 image with malformed Rock Ridge CE records can cause the kernel to read blocks outside the mounted volume, potentially leaking limited data from adjacent filesystems on the same block device through symlink text. The vulnerability requires mounting a malicious ISO image, which can occur via CAP_SYS_ADMIN manual mount or via auto-mount of removable media (e.g., USB optical drive, SD/MMC).

Affectedfs/isofs/rock.c (ISO 9660 filesystem)

Vulnerability analysis

The rock_continue() function reads rs->cont_extent from Rock Ridge CE records without validating that the block number is within the mounted ISO volume bounds (s_nzones). This allows a crafted ISO to specify continuation extents pointing to out-of-range blocks or blocks belonging to adjacent filesystems. Out-of-range reads return NULL cleanly through the block layer EIO path, causing the filesystem operation to fail safely without memory corruption or kernel panic. In-range reads of adjacent filesystem data are parsed as Rock Ridge records, and only the text of SL sub-records can reach userspace through readlink(), creating a narrow and difficult-to-exploit information leak. The fix adds a bounds check against ISOFS_SB(sb)->s_nzones before calling sb_bread().

03

BranchFixed inPatch commit
2.62.6.338356fb821016
3.103.11c9b37c8b73f6
3.123.1322b36fa081f3
3.143.15e69da8eeab74
3.173.18ef048470c90b
3.183.19a36d990f5913
3.23.3d582e12378bc
3.43.5bf1bc673c587
5.105.10.258
5.155.15.209
6.16.1.175
6.126.12.88
6.186.18.30
6.66.6.140
7.07.0.7
mainline7.1