CVE-2026-98576 PUBLISHED

nfc: llcp: fix slab-out-of-bounds reads when logging service names

Assigner: Linux
Reserved: 25.09.2026 Published: 18.10.2026 Updated: 18.10.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to 75f7c5a42fa1483f5912279a749417c284ad708f (excl.)
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to 6d4ca872830e46fcca9c086bf19fa9bd2faf09d2 (excl.)
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to a143f7835faa4fe0178448289feea4f84eeee8d6 (excl.)
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to 75bfd9ef4da2fb49dac1f19880d2ac4ccd07b45b (excl.)
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to 8afb6c194f5781798d3ab3edf243cf5a24a9d1f9 (excl.)
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to 8978dff632519712d1fa432991e1f2e857f90239 (excl.)
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to 4262b12277a3e056c95fc49e9c4d7bd97035d16c (excl.)
  • affected from d9b8d8e19b073096d3609bbd60f82148d128b555 to 7dcf371a35632f035baf77bcf2c129165f772ce4 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.10 is affected
  • unaffected from 0 to 3.10 (excl.)
  • unaffected from 5.10.271 to 5.10.* (incl.)
  • unaffected from 5.15.222 to 5.15.* (incl.)
  • unaffected from 6.1.189 to 6.1.* (incl.)
  • unaffected from 6.6.158 to 6.6.* (incl.)
  • unaffected from 6.12.112 to 6.12.* (incl.)
  • unaffected from 6.18.55 to 6.18.* (incl.)
  • unaffected from 7.2.9 to 7.2.* (incl.)
  • unaffected from 7.3-rc5 to * (incl.)

References