net: ena: PHC: Check return code before setting timestamp output
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.18.33, Kernel 7.0.10, Kernel bddf59818ae5102e6d82a4dae5add6df8da38fb0 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: net: ena: PHC: Check return code before setting timestamp output ena_phc_gettimex64() is setting the output parameter regardless of whether ena_com_phc_get_timestamp() succeeded or failed. When ena_com_phc_get_timestamp() returns an error, the timestamp parameter may contain uninitialized stack memory (e.g., when PHC is disabled or in blocked state) or invalid hardware values. Passing these to userspace via the PTP ioctl is both a security issue (information leak) and a correctness bug. Fix by checking the return code after releasing the lock and only setting the output timestamp on success.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.17 <6.18.33, >=6.19 <7.0.10, =7.1, >=e0ea34158ee8c4f7536cd781010339ff28c0d24c <bddf59818ae5102e6d82a4dae5add6df8da38fb0, >=e0ea34158ee8c4f7536cd781010339ff28c0d24c <edcb049d836e175e7b3d5e0d05657104545b5e65, =6.17, >=e0ea34158ee8c4f7536cd781010339ff28c0d24c <24a08d7d6218d60c033015cf4870b6096446e734 | 6.18.33, 7.0.10, bddf59818ae5102e6d82a4dae5add6df8da38fb0, edcb049d836e175e7b3d5e0d05657104545b5e65, 24a08d7d6218d60c033015cf4870b6096446e734 |
| linux-kernel: Kernel | >=6.17.0 <6.18.33, >=6.19.0 <7.0.10 | 6.18.33, 7.0.10 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket