nfc: llcp: fix sdreq TLV list leak on parse/alloc/send failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d9b8d8e19b073096d3609bbd60f82148d128b555 · < cbde7f5d326172d6dbb55cca0df42fa7e1ed8115| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s NFC LLCP service-discovery request handler can leak queued TLV nodes if nested-attribute parsing, allocation, or sending fails. The input does not specify whether triggering this requires local or network access, authentication, or user interaction.
Engineers running Linux kernels with NFC LLCP support should check their kernel version; affected versions are not specified.