nfc: llcp: fix sdreq TLV list leak on parse/alloc/send failure
- 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.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 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: nfc: llcp: fix sdreq TLV list leak on parse/alloc/send failure nfc_genl_llc_sdreq() builds a list of TLV nodes while walking nested netlink attrs, but 3 error paths (nested-attr parse failure, TLV alloc ENOMEM, nfc_llcp_send_snl_sdreq() failure) all skip freeing what was already queued. Route them through a new free_list label, mirroring the SDRES path in the same file which already does this. Harmless on the success path too -- send_snl_sdreq() drains the list as it moves nodes, so it's already empty by the time free_list runs.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 5b1eca82085134bd92cd3810b0ef003c91e3f668; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in d3f60a7fc291d08cd9192a3b4cd5d3a223fa7d02; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 755bfc409748d8f3df64eb0eb26926270de3dd77; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in e43ec0191c1630f41e7043ac729ea6f1b8044a7f; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 08d2c069239ab425fdd333784a6a3b3e034e4aa0; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in cbde7f5d326172d6dbb55cca0df42fa7e1ed8115; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 0b01a946b0f234f5badd25968610b585a4895f08; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 66f4300206b82b0b143ef0d9be90cd8d29f23a47
- Linux Linux
3.10
- KernelLinux
From 3.10.0 · fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9
References 8
git.kernel.org
- stable/c/5b1eca82085134bd92cd3810b0ef003c91e3f668
- stable/c/d3f60a7fc291d08cd9192a3b4cd5d3a223fa7d02
- stable/c/755bfc409748d8f3df64eb0eb26926270de3dd77
- stable/c/e43ec0191c1630f41e7043ac729ea6f1b8044a7f
- stable/c/08d2c069239ab425fdd333784a6a3b3e034e4aa0
- stable/c/cbde7f5d326172d6dbb55cca0df42fa7e1ed8115
- stable/c/0b01a946b0f234f5badd25968610b585a4895f08
- stable/c/66f4300206b82b0b143ef0d9be90cd8d29f23a47