{"id":"CVE-2026-98576","summary":"nfc: llcp: fix slab-out-of-bounds reads when logging service names","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: llcp: fix slab-out-of-bounds reads when logging service names\n\nnfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv() pass non-null-\nterminated strings to pr_debug() using the %s format specifier.\nThe buffers are allocated via kmemdup() or come from netlink\nattributes and are not guaranteed to be null-terminated, causing\n__dynamic_pr_debug() to read beyond the allocated region:\n\n  KASAN: slab-out-of-bounds Read in __dynamic_pr_debug\n\nFix both call sites by using %.*s with the explicit length to limit\nthe output to the actual length of the string.","modified":"2026-10-19T02:46:40.636270610Z","published":"2026-10-18T15:18:41.629Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98576.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4262b12277a3e056c95fc49e9c4d7bd97035d16c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d4ca872830e46fcca9c086bf19fa9bd2faf09d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/75bfd9ef4da2fb49dac1f19880d2ac4ccd07b45b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/75f7c5a42fa1483f5912279a749417c284ad708f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7dcf371a35632f035baf77bcf2c129165f772ce4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8978dff632519712d1fa432991e1f2e857f90239"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8afb6c194f5781798d3ab3edf243cf5a24a9d1f9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a143f7835faa4fe0178448289feea4f84eeee8d6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98576.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98576"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d9b8d8e19b073096d3609bbd60f82148d128b555"},{"fixed":"75f7c5a42fa1483f5912279a749417c284ad708f"},{"fixed":"6d4ca872830e46fcca9c086bf19fa9bd2faf09d2"},{"fixed":"a143f7835faa4fe0178448289feea4f84eeee8d6"},{"fixed":"75bfd9ef4da2fb49dac1f19880d2ac4ccd07b45b"},{"fixed":"8afb6c194f5781798d3ab3edf243cf5a24a9d1f9"},{"fixed":"8978dff632519712d1fa432991e1f2e857f90239"},{"fixed":"4262b12277a3e056c95fc49e9c4d7bd97035d16c"},{"fixed":"7dcf371a35632f035baf77bcf2c129165f772ce4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98576.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10.0"},{"fixed":"5.10.271"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.222"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.189"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98576.json"}}],"schema_version":"1.9.0"}