{"id":"CVE-2026-98483","aliases":["CVE-2026-98483"],"related":[],"kind":"vulnerability","state":"published","title":"nfc: fix use-after-free in nfc_get_local_general_bytes","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: fix use-after-free in nfc_get_local_general_bytes\n\nCommit 6709d4b7bc2e (\"net: nfc: Fix use-after-free caused by\nnfc_llcp_find_local\") attempted to fix a use-after-free (UAF) issue by\ninvoking nfc_llcp_local_put(local) after accessing local->gb. However,\nif the reference count drops to zero, local is freed immediately,\nleading to a use-after-free when callers access the returned pointer.\nAlternative approaches using dynamic allocation (e.g. kmemdup) introduced\nmemory leaks because callers consistently treat the returned pointer as\nborrowed memory.\n\nFix this properly by refactoring nfc_llcp_general_bytes() and\nnfc_get_local_general_bytes() to accept a caller-provided output buffer\n(out_gb) and its maximum length (gb_max_len). The general bytes are\nsafely copied into out_gb before calling nfc_llcp_local_put(local),\nensuring safe lifetime management without ownership transfer complications.\n\nUpdate all callers across drivers (microread, pn533, pn544, st21nfca,\ndigital_dep, and nci) to provide their own destination buffers and pass\nthem to nfc_get_local_general_bytes().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: fix use-after-free in nfc_get_local_general_bytes\n\nCommit 6709d4b7bc2e (\"net: nfc: Fix use-after-free caused by\nnfc_llcp_find_local\") attempted to fix a use-after-free (UAF) issue by\ninvoking nfc_llcp_local_put(local) after accessing local->gb. However,\nif the reference count drops to zero, local is freed immediately,\nleading to a use-after-free when callers access the returned pointer.\nAlternative approaches using dynamic allocation (e.g. kmemdup) introduced\nmemory leaks because callers consistently treat the returned pointer as\nborrowed memory.\n\nFix this properly by refactoring nfc_llcp_general_bytes() and\nnfc_get_local_general_bytes() to accept a caller-provided output buffer\n(out_gb) and its maximum length (gb_max_len). The general bytes are\nsafely copied into out_gb before calling nfc_llcp_local_put(local),\nensuring safe lifetime management without ownership transfer complications.\n\nUpdate all callers across drivers (microread, pn533, pn544, st21nfca,\ndigital_dep, and nci) to provide their own destination buffers and pass\nthem to nfc_get_local_general_bytes().","source":"cvelist"}],"published":"2026-10-18T15:15:57.275Z","modified":"2026-10-19T10:18:59.677Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"96f2c6f272ec04083d828de46285a7d7b17d1aad","fixed":"25bfa673adc70189c0bc872940421ae59f789cf6","status":"affected"},{"type":"git","introduced":"fc8429f8d86801f092fbfbd257c3af821ac0dcd3","fixed":"2b31d0cc95856c856ada91f943fb14dfdf29a923","status":"affected"},{"type":"git","introduced":"425d9d3a92df7d96b3cfb7ee5c240293a21cbde3","fixed":"c40f61a6a413f3eaf028e5fe367fd9749e503ab0","status":"affected"},{"type":"git","introduced":"6709d4b7bc2e079241fdef15d1160581c5261c10","fixed":"19bcfc2a56d0b82919079b5424c5a9a0ac897dcf","status":"affected"},{"type":"git","introduced":"6709d4b7bc2e079241fdef15d1160581c5261c10","fixed":"d8c929e9afdbc33b1876ecb97a517e850449b5bd","status":"affected"},{"type":"git","introduced":"6709d4b7bc2e079241fdef15d1160581c5261c10","fixed":"841af260ff477f6191872bc3b2e15488615c1827","status":"affected"},{"type":"git","introduced":"6709d4b7bc2e079241fdef15d1160581c5261c10","fixed":"9ede11e12f965ace97c4e0f606667f24fb41e7e1","status":"affected"},{"type":"git","introduced":"6709d4b7bc2e079241fdef15d1160581c5261c10","fixed":"dcab71a7011918f6fdba7adcec02d217dcb84b8d","status":"affected"},{"type":"git","version":"dd6ff3f3862709ab1a12566e73b9d6a9b8f6e548","status":"affected"},{"type":"git","version":"b3ad46e155a6d91b36c6e892019a43e3ef3c696d","status":"affected"},{"type":"git","version":"e5207c1d69b1a9707615ab6ff9376e59fc096815","status":"affected"},{"type":"semver","introduced":"5.10.188","fixed":"5.10.271","status":"affected"},{"type":"semver","introduced":"5.15.121","fixed":"5.15.222","status":"affected"},{"type":"semver","introduced":"6.1.39","fixed":"6.1.189","status":"affected"},{"type":"semver","introduced":"5.4.251","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.3.13","fixed":"6.4","status":"affected"},{"type":"semver","introduced":"6.4.4","fixed":"6.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.55","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/25bfa673adc70189c0bc872940421ae59f789cf6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b31d0cc95856c856ada91f943fb14dfdf29a923","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c40f61a6a413f3eaf028e5fe367fd9749e503ab0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19bcfc2a56d0b82919079b5424c5a9a0ac897dcf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8c929e9afdbc33b1876ecb97a517e850449b5bd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/841af260ff477f6191872bc3b2e15488615c1827","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ede11e12f965ace97c4e0f606667f24fb41e7e1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dcab71a7011918f6fdba7adcec02d217dcb84b8d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98483","url":"https://www.cve.org/CVERecord?id=CVE-2026-98483","licence":"CVE Terms of Use","modified":"2026-10-19T09:20:20.665Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98483","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98483","licence":"Public domain","modified":"2026-10-19T10:18:59.677Z"}],"updatedAt":"2026-11-25T22:59:45.197Z","epss":{"score":0.00216,"percentile":0.12838,"date":"2026-12-01T12:00:22.000Z"}}