Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected f400e12656ab518be107febfe2315fb1eab5a342 before b169185d5c672b989985c6c2e38cafab2548ba88; affected f400e12656ab518be107febfe2315fb1eab5a342 before c2a126fca820ae74872da28de68dc74d4595dc4b; affected f400e12656ab518be107febfe2315fb1eab5a342 before 95dadf366c117dcdca78a570e6832071deab1ecd; affected f400e12656ab518be107febfe2315fb1eab5a342 before 3d2f0cb66c909ea2312cdef465165bb9a3ba2d84; affected f400e12656ab518be107febfe2315fb1eab5a342 before bbb2218eb072b0a15dc063929200183bd23c2344; affected f400e12656ab518be107febfe2315fb1eab5a342 before d0a3729d464fcf516416a41cf304c0c92126ee03; affected f400e12656ab518be107febfe2315fb1eab5a342 before e4afd90bc7bf3dd477970c6c42bdd29ad3fda7fe; affected f400e12656ab518be107febfe2315fb1eab5a342 before e300eb5002925b29be803d2661af07266cfa267e |
| Linux / Linux | affected 2.6.29; unaffected 0 before 2.6.29; unaffected 5.10.270 through 5.10.*; unaffected 5.15.221 through 5.15.*; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/b169185d5c672b989985c6c2e38cafab2548ba88
- https://git.kernel.org/stable/c/c2a126fca820ae74872da28de68dc74d4595dc4b
- https://git.kernel.org/stable/c/95dadf366c117dcdca78a570e6832071deab1ecd
- https://git.kernel.org/stable/c/3d2f0cb66c909ea2312cdef465165bb9a3ba2d84
- https://git.kernel.org/stable/c/bbb2218eb072b0a15dc063929200183bd23c2344
- https://git.kernel.org/stable/c/d0a3729d464fcf516416a41cf304c0c92126ee03
- https://git.kernel.org/stable/c/e4afd90bc7bf3dd477970c6c42bdd29ad3fda7fe
- https://git.kernel.org/stable/c/e300eb5002925b29be803d2661af07266cfa267e