CVE-2024-26858
Description
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 metadata_map Just simply reordering the functions mlx5e_ptp_metadata_map_put and mlx5e_ptpsq_track_metadata in the mlx5e_txwqe_complete 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 mlx5e_ptpsq_mark_ts_cqes_undelivered in the NAPI polling context due to the tracking list being populated before the metadata map.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: alma — https://errata.almalinux.org/9/ALSA-2024-4583.html
Vendor advisory: alma — https://bugzilla.redhat.com/2294225
Vendor advisory: alma — https://bugzilla.redhat.com/2293653
Vendor advisory: alma — https://bugzilla.redhat.com/2293456
Vendor advisory: alma — https://bugzilla.redhat.com/2293402
Vendor advisory: alma — https://bugzilla.redhat.com/2293380
Vendor advisory: alma — https://bugzilla.redhat.com/2293230
Vendor advisory: alma — https://bugzilla.redhat.com/2284581
Vendor advisory: alma — https://bugzilla.redhat.com/2284541
Vendor advisory: alma — https://bugzilla.redhat.com/2283401
Vendor advisory: alma — https://bugzilla.redhat.com/2281925
Vendor advisory: alma — https://bugzilla.redhat.com/2281131
Vendor advisory: alma — https://bugzilla.redhat.com/2280434
Vendor advisory: alma — https://bugzilla.redhat.com/2277238
Vendor advisory: alma — https://bugzilla.redhat.com/2275735
Vendor advisory: alma — https://bugzilla.redhat.com/2273466
Vendor advisory: alma — https://bugzilla.redhat.com/2273082
Vendor advisory: alma — https://bugzilla.redhat.com/2267509
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-26858
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2024:4583
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-26858.html
Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2024:4583
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| sles | affected | | |
| rocky | 9 | fixed | |
| debian | bookworm | fixed | 0 |
| debian | bullseye | fixed | 0 |
| debian | forky | fixed | 6.7.12-1 |
| debian | sid | fixed | 6.7.12-1 |
| debian | trixie | fixed | 6.7.12-1 |
References
- https://access.redhat.com/errata/RHSA-2024:4583
- https://www.suse.com/security/cve/CVE-2024-26858.html
- https://errata.rockylinux.org/RLSA-2024:4583
- https://security-tracker.debian.org/tracker/CVE-2024-26858
- https://bugzilla.redhat.com/2267509
- https://bugzilla.redhat.com/2273082
- https://bugzilla.redhat.com/2273466
- https://bugzilla.redhat.com/2275735
- https://bugzilla.redhat.com/2277238
- https://bugzilla.redhat.com/2280434
- https://bugzilla.redhat.com/2281131
- https://bugzilla.redhat.com/2281925
- https://bugzilla.redhat.com/2283401
- https://bugzilla.redhat.com/2284541
- https://bugzilla.redhat.com/2284581
- https://bugzilla.redhat.com/2293230
- https://bugzilla.redhat.com/2293380
- https://bugzilla.redhat.com/2293402
- https://bugzilla.redhat.com/2293456
- https://bugzilla.redhat.com/2293653
- https://bugzilla.redhat.com/2294225
- https://errata.almalinux.org/9/ALSA-2024-4583.html
Verify integrity in audit chain (admin only). AS-IS.