Linux
isofs: validate Rock Ridge CE continuation extent against volume size
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < 8356fb821016797f5677cbeee5ddc0d32a95b4be
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < d582e12378bc1637f337622feef762f53c43fd57
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < bf1bc673c587f5ef7e9c09b94aea7c5a7847d4d9
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < c9b37c8b73f6368e4750e5ccb0632c380b43c6e5
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < 22b36fa081f38ab397c7697f9d539211b51a0cfc
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < e69da8eeab74b4f4505024c38a17bce060fe7df8
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < ef048470c90bc8c1b8318bb2ce329da9ef64b9fe
- >= f54e18f1b831c92f6512d2eedb224cd63d607d3d, < a36d990f591320e9dd379ab30063ebfe91d47e1f
- 08313e26e06d4aa9ce1cbba1a8e359e9cab9ad56
- 212c4d33ca83e2144064fe9c2911607fbed5386f
- 96e44adce250199ec9b2b928be66365779ff1b59
- 1fe5620fcd6c2f0a4a927ee10c8e53196da392f3
- fbce0d7dc8965c9fb8d411862040239d4a768c71
- 8190393a88f2b0321263a54f2a9eb5a2aa43be7e
- 486aa789eadcf44ed87f972b209299c516454693
- b6d20edb6e7cedb4eedb9e0193d20dd488ebae84
- >= 2.6.32.66, < 2.6.33
- >= 3.2.67, < 3.3
- >= 3.4.107, < 3.5
- >= 3.10.64, < 3.11
- >= 3.12.36, < 3.13
- >= 3.14.28, < 3.15
- >= 3.17.8, < 3.18
- >= 3.18.2, < 3.19
Fixed in 8356fb821016797f5677cbeee5ddc0d32a95b4be, d582e12378bc1637f337622feef762f53c43fd57, bf1bc673c587f5ef7e9c09b94aea7c5a7847d4d9, c9b37c8b73f6368e4750e5ccb0632c380b43c6e5, 22b36fa081f38ab397c7697f9d539211b51a0cfc, e69da8eeab74b4f4505024c38a17bce060fe7df8, ef048470c90bc8c1b8318bb2ce329da9ef64b9fe, a36d990f591320e9dd379ab30063ebfe91d47e1f, 2.6.33, 3.3, 3.5, 3.11, 3.13, 3.15, 3.18, 3.19
- 3.19
Fixed in 0, 5.10.258, 5.15.209, 6.1.175, 6.6.140, 6.12.88, 6.18.30, 7.0.7, 7.1
Mitigation
Upgrade Linux to 8356fb821016797f5677cbeee5ddc0d32a95b4be or d582e12378bc1637f337622feef762f53c43fd57 or bf1bc673c587f5ef7e9c09b94aea7c5a7847d4d9 or c9b37c8b73f6368e4750e5ccb0632c380b43c6e5 or 22b36fa081f38ab397c7697f9d539211b51a0cfc or e69da8eeab74b4f4505024c38a17bce060fe7df8 or ef048470c90bc8c1b8318bb2ce329da9ef64b9fe or a36d990f591320e9dd379ab30063ebfe91d47e1f or 2.6.33 or 3.3 or 3.5 or 3.11 or 3.13 or 3.15 or 3.18 or 3.19 or later.
Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.140 or 6.12.88 or 6.18.30 or 7.0.7 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.