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

Published Jun 24, 2026
·
Updated

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

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

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 enadev->phc.virtaddr before the lock was acquired.

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

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

Affected Software

6 affected components
Linux Linux kernel (ena)
Linux Linux kernel>=6.17<6.18.33
Linux Linux kernel>=6.19<7.0.10
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the ena PHC get_timestamp path, acquire the spinlock before checking phc->active and assigning the resp pointer; perform both operations while holding the lock so ena_com_phc_destroy() cannot free the DMA memory concurrently.

Event History

Jun 24, 2026
CVE Published
via MITRE·04:28 PM
Data Sourced
via MITRE·04:28 PM
DescriptionSeverity
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-52971?

CVE-2026-52971 has a risk rating of 34, indicating a moderate level of severity.

2

What does CVE-2026-52971 involve?

CVE-2026-52971 involves a potential use-after-free vulnerability in the get_timestamp function of the Linux kernel.

3

How can CVE-2026-52971 be exploited?

CVE-2026-52971 can potentially be exploited if the phc->active check is performed without proper locking, leading to use-after-free vulnerabilities.

4

How do I fix CVE-2026-52971?

To fix CVE-2026-52971, ensure that the phc->active check and resp pointer assignment are performed after acquiring the spinlock.

5

In which versions of the Linux kernel is CVE-2026-52971 a concern?

CVE-2026-52971 is a concern in affected versions of the Linux kernel utilizing the ena driver.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203