# CVE-2026-72489: staging: nvec: fix use-after-free in nvec_rx_completed()

- Severity: High 8.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-08-15T05:57:24.948Z
- Modified: 2026-08-17T06:19:17.150Z
- Assigned by: Linux

## Description

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

staging: nvec: fix use-after-free in nvec_rx_completed()

In nvec_rx_completed(), when an incomplete RX transfer is detected,
nvec_msg_free() is called to return the message back to the pool by
clearing its 'used' atomic flag. Immediately after this, the code
accesses nvec->rx->data[0] to check the message type.

Since nvec_msg_free() marks the pool slot as available via atomic_set(),
any concurrent or subsequent call to nvec_msg_alloc() could claim that
same slot and overwrite its data[] array. Reading nvec->rx->data[0] after
freeing the message is therefore a use-after-free.

Fix this by saving the message type byte before calling nvec_msg_free(),
then using the saved value for the battery quirk check.

(As written by CVE List.)

## Affected

- Linux Linux: from d6bdcf2e1019351cbc176e963b7756766bdd8721 before 6b2ea886ebdae44a2394029844a4e78f58e1587d; from d6bdcf2e1019351cbc176e963b7756766bdd8721 before a37625c7b688fcf68a54263528eccbabfd7fa17a; from d6bdcf2e1019351cbc176e963b7756766bdd8721 before 9f7fe4165a1f1014bdadc8e744c0fd3c2d8c0b89; from d6bdcf2e1019351cbc176e963b7756766bdd8721 before 08626fcfe12308ca3f8b22c538ba7dee0b2dce7a; from d6bdcf2e1019351cbc176e963b7756766bdd8721 before f19a5bc059051143c489dd6f79a0f9c3bfd13aea; from d6bdcf2e1019351cbc176e963b7756766bdd8721 before bb3d592c7d6c4ec8ac6640c690ca13298e7e8e90; from d6bdcf2e1019351cbc176e963b7756766bdd8721 before 5de04caa46b635e180cecbd164e333eca535db94; from d6bdcf2e1019351cbc176e963b7756766bdd8721 before 26813881181deb3a32fbb59eadb2599cbe8423f6; 3.2 (not affected: before 3.2; from 5.10.261 up to 5.10.*; from 5.15.212 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/6b2ea886ebdae44a2394029844a4e78f58e1587d>
- <https://git.kernel.org/stable/c/a37625c7b688fcf68a54263528eccbabfd7fa17a>
- <https://git.kernel.org/stable/c/9f7fe4165a1f1014bdadc8e744c0fd3c2d8c0b89>
- <https://git.kernel.org/stable/c/08626fcfe12308ca3f8b22c538ba7dee0b2dce7a>
- <https://git.kernel.org/stable/c/f19a5bc059051143c489dd6f79a0f9c3bfd13aea>
- <https://git.kernel.org/stable/c/bb3d592c7d6c4ec8ac6640c690ca13298e7e8e90>
- <https://git.kernel.org/stable/c/5de04caa46b635e180cecbd164e333eca535db94>
- <https://git.kernel.org/stable/c/26813881181deb3a32fbb59eadb2599cbe8423f6>

## Sources

- CVE List: [CVE-2026-72489](https://www.cve.org/CVERecord?id=CVE-2026-72489), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-72489](https://nvd.nist.gov/vuln/detail/CVE-2026-72489), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-72489 · Whole record: https://cve.day/CVE-2026-72489.json · Rebuilt by cve.day 2026-11-25T22:59:33.140Z
