thunderbolt: Reject zero-length property entries in validator
- 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.259, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 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
Summary
In the Linux kernel, the following vulnerability has been resolved: thunderbolt: Reject zero-length property entries in validator tb_property_entry_valid() accepts entries with length == 0 for DIRECTORY, DATA, and TEXT types. A zero-length TEXT entry passes validation but causes an underflow in the null-termination logic: property->value.text[property->length * 4 - 1] = '\0'; When property->length is 0 this writes to offset -1 relative to the allocation. Reject zero-length entries early in the validator since they have no valid representation in the XDomain property protocol.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 581c2053ab4dbe27e83c9e62deb4c73aa8dc0c3a; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 35d6c9252a152e756768a26dbf216b9dd9dd8e92; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 99d9dbad1463afb510d42c9714f846361d1b726d; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 5f56bc6bddffe8710ba0ba8844023b5a44ca90e4; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in ca11e7da4fba4b394f69e16448f4463c44c84de6; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 2e0ddac549ebd713eb9f4a15b6496e3440a17d8b; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 3b6e68cb97f725385010264a873e14a3921b6b8a; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in cff8eb65d1eafe7793e54b4d0cf6bf831644630b
- Linux Linux
4.15
- KernelLinux
From 4.15.0 · fixed in 5.10.259; From 5.11.0 · fixed in 5.15.210; From 5.16.0 · fixed in 6.1.176; From 6.2.0 · fixed in 6.6.143; From 6.7.0 · fixed in 6.12.94; From 6.13.0 · fixed in 6.18.36; From 6.19.0 · fixed in 7.0.13
References 8
git.kernel.org
- stable/c/581c2053ab4dbe27e83c9e62deb4c73aa8dc0c3a
- stable/c/35d6c9252a152e756768a26dbf216b9dd9dd8e92
- stable/c/99d9dbad1463afb510d42c9714f846361d1b726d
- stable/c/5f56bc6bddffe8710ba0ba8844023b5a44ca90e4
- stable/c/ca11e7da4fba4b394f69e16448f4463c44c84de6
- stable/c/2e0ddac549ebd713eb9f4a15b6496e3440a17d8b
- stable/c/3b6e68cb97f725385010264a873e14a3921b6b8a
- stable/c/cff8eb65d1eafe7793e54b4d0cf6bf831644630b