# CVE-2026-52971: net: ena: PHC: Fix potential use-after-free in get_timestamp

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/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.10%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-24T16:28:49.637Z
- Modified: 2026-10-19T20:18:51.767Z
- Weaknesses: CWE-362, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

net: ena: PHC: Fix potential use-after-free in get_timestamp

Move the phc->active check and resp pointer assignment to after
acquiring the spinlock. Previously, phc->active was checked without
holding the lock, and resp was cached from ena_dev->phc.virt_addr
before the lock was acquired.

If ena_com_phc_destroy() runs between the lockless active check and
the lock acquisition, it sets active=false, releases the lock, frees
the DMA memory, and sets virt_addr=NULL. The get_timestamp path would
then read a NULL virt_addr and dereference it.

With both the active check and the pointer read under the lock,
destroy cannot free the memory while get_timestamp is using it.

(As written by CVE List.)

## Affected

- Linux Linux: from e0ea34158ee8c4f7536cd781010339ff28c0d24c before 95e8ae9af2a61b4e72f5c585bf4c7d8aaf2a2c98; from e0ea34158ee8c4f7536cd781010339ff28c0d24c before ca9ed40f28949353911dcb524ff8fff2f3409c97; from e0ea34158ee8c4f7536cd781010339ff28c0d24c before e42c755582f0960e684298762f0ab927b3778376; 6.17 (not affected: before 6.17; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.17 before 6.18.33; from 6.19 before 7.0.10; 7.1

## References

- <https://git.kernel.org/stable/c/95e8ae9af2a61b4e72f5c585bf4c7d8aaf2a2c98> (patch)
- <https://git.kernel.org/stable/c/ca9ed40f28949353911dcb524ff8fff2f3409c97> (patch)
- <https://git.kernel.org/stable/c/e42c755582f0960e684298762f0ab927b3778376> (patch)

## Sources

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

---

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