slip: bound decode() reads against the compressed packet length
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
In the Linux kernel, the following vulnerability has been resolved: slip: bound decode() reads against the compressed packet length slhc_uncompress() parses a VJ-compressed TCP header by advancing a pointer through the packet via decode() and pull16(). Neither helper bounds-checks against isize, and decode() masks its return with & 0xffff so it can never return the -1 that callers test for -- those error paths are dead code. A short compressed frame whose change byte requests optional fields lets decode() read past the end of the packet. The over-read bytes are folded into the cached cstate and reflected into subsequent reconstructed packets. Make decode() and pull16() take the packet end pointer and return -1 when exhausted. Add a bounds check before the TCP-checksum read. The existing == -1 tests now do what they were always meant to.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 6268f01ae989013671b526c883e92655342c6f6f; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 9aafba2f49e1fcccc2018816f5836a609c925879; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 335957df4ed60f02a2ec0432fbedbf0cc7241d8b; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 37537e42e6df387398bee85cb85070cc80bb1e10; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 4cefe32639933d652614b0bd50f818f9af4af78f; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 0511ecb00e61bf28e2fec4bb41fcce385c3a3b2d; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in d42bec6e4f6d6d658be365539400b3314b76b2a7; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 4c1367a2d7aad643a6f87c6931b13cc1a25e8ca7
- Linux Linux
2.6.12
- KernelLinux
From 2.6.12 · fixed in 5.10.258; From 5.11.0 · fixed in 5.15.209; From 5.16.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.141; From 6.7.0 · fixed in 6.12.91; From 6.13.0 · fixed in 6.18.33; From 6.19.0 · fixed in 7.0.10
References 8
git.kernel.org
- stable/c/6268f01ae989013671b526c883e92655342c6f6f
- stable/c/9aafba2f49e1fcccc2018816f5836a609c925879
- stable/c/335957df4ed60f02a2ec0432fbedbf0cc7241d8b
- stable/c/37537e42e6df387398bee85cb85070cc80bb1e10
- stable/c/4cefe32639933d652614b0bd50f818f9af4af78f
- stable/c/0511ecb00e61bf28e2fec4bb41fcce385c3a3b2d
- stable/c/d42bec6e4f6d6d658be365539400b3314b76b2a7
- stable/c/4c1367a2d7aad643a6f87c6931b13cc1a25e8ca7