CVE-2024-26858: net/mlx5e: Use a memory barrier to enforce PTP WQ xmit submission tracking occurs after populating the metadata_map
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Use a memory barrier to enforce PTP WQ xmit submission tracking occurs after populating the metadatamap
Just simply reordering the functions mlx5eptpmetadatamapput and mlx5eptpsqtrackmetadata in the mlx5etxwqecomplete context is not good enough since both the compiler and CPU are free to reorder these two functions. If reordering does occur, the issue that was supposedly fixed by 7e3f3ba97e6c ("net/mlx5e: Track xmit submission to PTP WQ after populating metadata map") will be seen. This will lead to NULL pointer dereferences in mlx5eptpsqmarktscqesundelivered in the NAPI polling context due to the tracking list being populated before the metadata map.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Use a memory barrier to enforce PTP WQ xmit submission tracking occurs after populating the metadatamap
The Linux kernel CVE team has assigned CVE-2024-26858 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024041725-CVE-2024-26858-34fb@gregkh/T
— Red Hat
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26858?
CVE-2024-26858 is a medium severity vulnerability affecting the Linux kernel.
How do I fix CVE-2024-26858?
To fix CVE-2024-26858, upgrade the Linux kernel to version 6.6.22, 6.7.10, or 6.8 as recommended.
What systems are affected by CVE-2024-26858?
CVE-2024-26858 affects the Linux kernel in versions prior to 6.6.22, 6.7.10, and 6.8.
What kind of vulnerability is CVE-2024-26858?
CVE-2024-26858 is related to improper memory barrier usage in the Linux kernel's PTP WQ implementation.
Who reported CVE-2024-26858?
CVE-2024-26858 is documented in the Linux kernel’s official vulnerability reporting channels.