nfc: llcp: fix slab-out-of-bounds reads when logging service names
- 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 slab-out-of-bounds reads when logging service names nfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv() pass non-null- terminated strings to pr_debug() using the %s format specifier. The buffers are allocated via kmemdup() or come from netlink attributes and are not guaranteed to be null-terminated, causing __dynamic_pr_debug() to read beyond the allocated region: KASAN: slab-out-of-bounds Read in __dynamic_pr_debug Fix both call sites by using %.*s with the explicit length to limit the output to the actual length of the string.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 75f7c5a42fa1483f5912279a749417c284ad708f; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 6d4ca872830e46fcca9c086bf19fa9bd2faf09d2; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in a143f7835faa4fe0178448289feea4f84eeee8d6; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 75bfd9ef4da2fb49dac1f19880d2ac4ccd07b45b; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 8afb6c194f5781798d3ab3edf243cf5a24a9d1f9; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 8978dff632519712d1fa432991e1f2e857f90239; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 4262b12277a3e056c95fc49e9c4d7bd97035d16c; From d9b8d8e19b073096d3609bbd60f82148d128b555 · fixed in 7dcf371a35632f035baf77bcf2c129165f772ce4
- 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/75f7c5a42fa1483f5912279a749417c284ad708f
- stable/c/6d4ca872830e46fcca9c086bf19fa9bd2faf09d2
- stable/c/a143f7835faa4fe0178448289feea4f84eeee8d6
- stable/c/75bfd9ef4da2fb49dac1f19880d2ac4ccd07b45b
- stable/c/8afb6c194f5781798d3ab3edf243cf5a24a9d1f9
- stable/c/8978dff632519712d1fa432991e1f2e857f90239
- stable/c/4262b12277a3e056c95fc49e9c4d7bd97035d16c
- stable/c/7dcf371a35632f035baf77bcf2c129165f772ce4