Linux
Squashfs: check block offset is not negative
In the Linux kernel, the following vulnerability has been resolved: Squashfs: check block offset is not negative If a negative offset is read off disk (for example the offset into the decompressed fragment block), this will cause squashfs_copy_data() to perform an out of bounds access. Fix by checking if offset is negative, and returning 0. This matches existing behaviour where an offset beyond the block returns 0 bytes copied. To trigger this out of bounds access requires a crafted Squashfs filesystem and CAP_SYS_ADMIN to mount it. Unprivileged users will not be able to mount such a filesystem, but once mounted, an unprivileged user can trigger the out of bounds access by reading the crafted file with the negative offset.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f400e12656ab518be107febfe2315fb1eab5a342, < b169185d5c672b989985c6c2e38cafab2548ba88
- >= f400e12656ab518be107febfe2315fb1eab5a342, < c2a126fca820ae74872da28de68dc74d4595dc4b
- >= f400e12656ab518be107febfe2315fb1eab5a342, < 95dadf366c117dcdca78a570e6832071deab1ecd
- >= f400e12656ab518be107febfe2315fb1eab5a342, < 3d2f0cb66c909ea2312cdef465165bb9a3ba2d84
- >= f400e12656ab518be107febfe2315fb1eab5a342, < bbb2218eb072b0a15dc063929200183bd23c2344
- >= f400e12656ab518be107febfe2315fb1eab5a342, < d0a3729d464fcf516416a41cf304c0c92126ee03
- >= f400e12656ab518be107febfe2315fb1eab5a342, < e4afd90bc7bf3dd477970c6c42bdd29ad3fda7fe
- >= f400e12656ab518be107febfe2315fb1eab5a342, < e300eb5002925b29be803d2661af07266cfa267e
Fixed in b169185d5c672b989985c6c2e38cafab2548ba88, c2a126fca820ae74872da28de68dc74d4595dc4b, 95dadf366c117dcdca78a570e6832071deab1ecd, 3d2f0cb66c909ea2312cdef465165bb9a3ba2d84, bbb2218eb072b0a15dc063929200183bd23c2344, d0a3729d464fcf516416a41cf304c0c92126ee03, e4afd90bc7bf3dd477970c6c42bdd29ad3fda7fe, e300eb5002925b29be803d2661af07266cfa267e
- 2.6.29
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to b169185d5c672b989985c6c2e38cafab2548ba88 or c2a126fca820ae74872da28de68dc74d4595dc4b or 95dadf366c117dcdca78a570e6832071deab1ecd or 3d2f0cb66c909ea2312cdef465165bb9a3ba2d84 or bbb2218eb072b0a15dc063929200183bd23c2344 or d0a3729d464fcf516416a41cf304c0c92126ee03 or e4afd90bc7bf3dd477970c6c42bdd29ad3fda7fe or e300eb5002925b29be803d2661af07266cfa267e or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 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.