{"id":"CVE-2026-72489","summary":"staging: nvec: fix use-after-free in nvec_rx_completed()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: nvec: fix use-after-free in nvec_rx_completed()\n\nIn nvec_rx_completed(), when an incomplete RX transfer is detected,\nnvec_msg_free() is called to return the message back to the pool by\nclearing its 'used' atomic flag. Immediately after this, the code\naccesses nvec-\u003erx-\u003edata[0] to check the message type.\n\nSince nvec_msg_free() marks the pool slot as available via atomic_set(),\nany concurrent or subsequent call to nvec_msg_alloc() could claim that\nsame slot and overwrite its data[] array. Reading nvec-\u003erx-\u003edata[0] after\nfreeing the message is therefore a use-after-free.\n\nFix this by saving the message type byte before calling nvec_msg_free(),\nthen using the saved value for the battery quirk check.","modified":"2026-08-18T03:56:26.733655811Z","published":"2026-08-15T05:57:24.948Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72489.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/08626fcfe12308ca3f8b22c538ba7dee0b2dce7a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/26813881181deb3a32fbb59eadb2599cbe8423f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5de04caa46b635e180cecbd164e333eca535db94"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6b2ea886ebdae44a2394029844a4e78f58e1587d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f7fe4165a1f1014bdadc8e744c0fd3c2d8c0b89"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a37625c7b688fcf68a54263528eccbabfd7fa17a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bb3d592c7d6c4ec8ac6640c690ca13298e7e8e90"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f19a5bc059051143c489dd6f79a0f9c3bfd13aea"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72489.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72489"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d6bdcf2e1019351cbc176e963b7756766bdd8721"},{"fixed":"6b2ea886ebdae44a2394029844a4e78f58e1587d"},{"fixed":"a37625c7b688fcf68a54263528eccbabfd7fa17a"},{"fixed":"9f7fe4165a1f1014bdadc8e744c0fd3c2d8c0b89"},{"fixed":"08626fcfe12308ca3f8b22c538ba7dee0b2dce7a"},{"fixed":"f19a5bc059051143c489dd6f79a0f9c3bfd13aea"},{"fixed":"bb3d592c7d6c4ec8ac6640c690ca13298e7e8e90"},{"fixed":"5de04caa46b635e180cecbd164e333eca535db94"},{"fixed":"26813881181deb3a32fbb59eadb2599cbe8423f6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72489.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0"},{"fixed":"5.10.261"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72489.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}