Description
In the Linux kernel, the following vulnerability has been resolved:

nfc: fix use-after-free in nfc_get_local_general_bytes

Commit 6709d4b7bc2e ("net: nfc: Fix use-after-free caused by
nfc_llcp_find_local") attempted to fix a use-after-free (UAF) issue by
invoking nfc_llcp_local_put(local) after accessing local->gb. However,
if the reference count drops to zero, local is freed immediately,
leading to a use-after-free when callers access the returned pointer.
Alternative approaches using dynamic allocation (e.g. kmemdup) introduced
memory leaks because callers consistently treat the returned pointer as
borrowed memory.

Fix this properly by refactoring nfc_llcp_general_bytes() and
nfc_get_local_general_bytes() to accept a caller-provided output buffer
(out_gb) and its maximum length (gb_max_len). The general bytes are
safely copied into out_gb before calling nfc_llcp_local_put(local),
ensuring safe lifetime management without ownership transfer complications.

Update all callers across drivers (microread, pn533, pn544, st21nfca,
digital_dep, and nci) to provide their own destination buffers and pass
them to nfc_get_local_general_bytes().
Published: 2026-10-18
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote code execution
Action: Apply Patch
AI Analysis

Impact

nfc_get_local_general_bytes in the Linux kernel NFC stack contains a use‑after‑free flaw. The bug arises when a local context is released after its reference count reaches zero, yet callers continue to access the freed memory. This results in kernel memory corruption and can be exploited to execute arbitrary code with kernel privileges, representing a classic use‑after‑free (CWE‑825) vulnerability.

Affected Systems

The vulnerability affects all Linux kernel builds that include the legacy NFC driver stack before the commit that introduces the fix. Affected drivers include microread, pn533, pn544, st21nfca, digital_dep, and nci. Any system running a kernel older than commit 6709d4b7bc2e is potentially at risk.

Risk and Exploitability

EPSS score is less than 1%, indicating a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Because the flaw operates in kernel space and the CVSS score of 5.5 indicates moderate severity, the overall risk is moderate but it remains possible to exploit. Exploitation would likely require physical or logical access to an NFC device on the target system and an ability to inject crafted NFC frames, which can trigger the dereference of freed memory and trigger the use‑after‑free. This could lead to a crash or privilege escalation if successfully leveraged.

Generated by OpenCVE AI on October 23, 2026 at 06:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes commit 6709d4b7bc2e or later.
  • Ensure that the NFC driver modules (microread, pn533, pn544, st21nfca, digital_dep, nci) are rebuilt or replaced with the latest patched versions.
  • If an immediate kernel upgrade cannot be performed, disable the NFC subsystem by removing the module load entries or configuring the kernel with NFC support disabled (CONFIG_NFC_MTK=n or similar).

Generated by OpenCVE AI on October 23, 2026 at 06:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 21 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Mon, 19 Oct 2026 00:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nfc: fix use-after-free in nfc_get_local_general_bytes Commit 6709d4b7bc2e ("net: nfc: Fix use-after-free caused by nfc_llcp_find_local") attempted to fix a use-after-free (UAF) issue by invoking nfc_llcp_local_put(local) after accessing local->gb. However, if the reference count drops to zero, local is freed immediately, leading to a use-after-free when callers access the returned pointer. Alternative approaches using dynamic allocation (e.g. kmemdup) introduced memory leaks because callers consistently treat the returned pointer as borrowed memory. Fix this properly by refactoring nfc_llcp_general_bytes() and nfc_get_local_general_bytes() to accept a caller-provided output buffer (out_gb) and its maximum length (gb_max_len). The general bytes are safely copied into out_gb before calling nfc_llcp_local_put(local), ensuring safe lifetime management without ownership transfer complications. Update all callers across drivers (microread, pn533, pn544, st21nfca, digital_dep, and nci) to provide their own destination buffers and pass them to nfc_get_local_general_bytes().
Title nfc: fix use-after-free in nfc_get_local_general_bytes
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:20:20.665Z

Reserved: 2026-09-25T10:25:14.352Z

Link: CVE-2026-98483

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:16:58.940

Modified: 2026-10-19T10:18:59.677

Link: CVE-2026-98483

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T00:00:00Z

Links: CVE-2026-98483 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T07:00:17Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference