Skip to content

CVE-2024-50001 net/mlx5: Fix error path in multi-packet WQE transmit

MediumCVSS 5.5 EPSS 0.33%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Linux KernelUbuntuDebian

Description

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

net/mlx5: Fix error path in multi-packet WQE transmit

Remove the erroneous unmap in case no DMA mapping was established

The multi-packet WQE transmit code attempts to obtain a DMA mapping for
the skb. This could fail, e.g. under memory pressure, when the IOMMU
driver just can't allocate more memory for page tables. While the code
tries to handle this in the path below the err_unmap label it erroneously
unmaps one entry from the sq's FIFO list of active mappings. Since the
current map attempt failed this unmap is removing some random DMA mapping
that might still be required. If the PCI function now presents that IOVA,
the IOMMU may assumes a rogue DMA access and e.g. on s390 puts the PCI
function in error state.

The erroneous behavior was seen in a stress-test environment that created
memory pressure.

Upgrade path

14 packages: 14 fixed.

PackageAffectedFixed inStatus
debian/linux(Debian 12) < 6.1.115-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +27 more 6.1.115-1 Fixed
debian/linux(Debian 13) < 6.11.4-1 6.11.4-1 Fixed
debian/linux(Debian 14) < 6.11.4-1 6.11.4-1 Fixed
Linux kernel < 5.10.227; < 5.15.168; < 6.1.113; < 6.6.55 +18 more 2bcae12c795f32ddfbf8c80d1b5f1d3286341c32, 5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3, 6.12, 8bb8c12fb5e2b1f03d603d493c92941676f109b5, 26fad69b34fcba80d5c7d9e651f628e6ac927754, ca36d6c1a49b6965c86dd528a73f38bc62d9c625, ce828b347cf1b3c1b12b091d02463c35ce5097f5, ecf310aaf256acbc8182189fe0aa1021c3ddef72, fc357e78176945ca7bcacf92ab794b9ccd41b4f4 Fixed
Microsoft azure linux < 6.6.57.1-2 6.6.57.1-2 Fixed
Siemens RUGGEDCOM RST2428P < V3.2 V3.2 Fixed
Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family < V3.2 V3.2 Fixed
Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family < V3.2 V3.2 Fixed
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem < V1.1.1 V1.1.1 Fixed
ubuntu/linux(Ubuntu 22.04) < 5.15.0-127.137 5.15.0-127.137 Fixed
ubuntu/linux(Ubuntu 24.04) < 6.8.0-54.56 6.8.0-54.56 Fixed
ubuntu/linux-kvm(Ubuntu 22.04) < 5.15.0-1070.75 5.15.0-1070.75 Fixed
ubuntu/linux-raspi(Ubuntu 22.04) < 5.15.0-1066.69 5.15.0-1066.69 Fixed
ubuntu/linux-raspi(Ubuntu 24.04) < 6.8.0-1019.23 6.8.0-1019.23 Fixed

Affected products

ProductAffected versionsFixed in
Microsoft azure linux < 6.6.57.1-2 6.6.57.1-2
debian/linux(Debian:12) < 6.1.115-1 6.1.115-1
debian/linux(Debian:12) = 6.1.106-1 No fix listed
debian/linux(Debian:12) = 6.1.106-2 No fix listed
debian/linux(Debian:12) = 6.1.106-3 No fix listed
debian/linux(Debian:12) = 6.1.112-1 No fix listed
debian/linux(Debian:12) = 6.1.27-1 No fix listed
debian/linux(Debian:12) = 6.1.37-1 No fix listed
debian/linux(Debian:12) = 6.1.38-1 No fix listed
debian/linux(Debian:12) = 6.1.38-2 No fix listed
debian/linux(Debian:12) = 6.1.38-2~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.38-3 No fix listed
debian/linux(Debian:12) = 6.1.38-4 No fix listed
debian/linux(Debian:12) = 6.1.38-4~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.52-1 No fix listed
debian/linux(Debian:12) = 6.1.55-1 No fix listed
debian/linux(Debian:12) = 6.1.55-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.64-1 No fix listed
debian/linux(Debian:12) = 6.1.66-1 No fix listed
debian/linux(Debian:12) = 6.1.67-1 No fix listed
debian/linux(Debian:12) = 6.1.69-1 No fix listed
debian/linux(Debian:12) = 6.1.69-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.76-1 No fix listed
debian/linux(Debian:12) = 6.1.76-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.82-1 No fix listed
Show 40 more
ProductAffected versionsFixed in
debian/linux(Debian:12) = 6.1.85-1 No fix listed
debian/linux(Debian:12) = 6.1.90-1 No fix listed
debian/linux(Debian:12) = 6.1.90-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.94-1 No fix listed
debian/linux(Debian:12) = 6.1.94-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.98-1 No fix listed
debian/linux(Debian:12) = 6.1.99-1 No fix listed
debian/linux(Debian:13) < 6.11.4-1 6.11.4-1
debian/linux(Debian:14) < 6.11.4-1 6.11.4-1
ubuntu/linux(Ubuntu:22.04) < 5.15.0-127.137 5.15.0-127.137
ubuntu/linux-kvm(Ubuntu:22.04) < 5.15.0-1070.75 5.15.0-1070.75
ubuntu/linux-raspi(Ubuntu:22.04) < 5.15.0-1066.69 5.15.0-1066.69
Linux kernel >= 5af75c747e2a868abbf8611494b50ed5e076fca7, < ca36d6c1a49b6965c86dd528a73f38bc62d9c625 ca36d6c1a49b6965c86dd528a73f38bc62d9c625
Linux kernel >= 5af75c747e2a868abbf8611494b50ed5e076fca7, < ce828b347cf1b3c1b12b091d02463c35ce5097f5 ce828b347cf1b3c1b12b091d02463c35ce5097f5
Linux kernel >= 5af75c747e2a868abbf8611494b50ed5e076fca7, < fc357e78176945ca7bcacf92ab794b9ccd41b4f4 fc357e78176945ca7bcacf92ab794b9ccd41b4f4
Linux kernel >= 5af75c747e2a868abbf8611494b50ed5e076fca7, < 26fad69b34fcba80d5c7d9e651f628e6ac927754 26fad69b34fcba80d5c7d9e651f628e6ac927754
Linux kernel >= 5af75c747e2a868abbf8611494b50ed5e076fca7, < ecf310aaf256acbc8182189fe0aa1021c3ddef72 ecf310aaf256acbc8182189fe0aa1021c3ddef72
Linux kernel >= 5af75c747e2a868abbf8611494b50ed5e076fca7, < 8bb8c12fb5e2b1f03d603d493c92941676f109b5 8bb8c12fb5e2b1f03d603d493c92941676f109b5
Linux kernel >= 5af75c747e2a868abbf8611494b50ed5e076fca7, < 2bcae12c795f32ddfbf8c80d1b5f1d3286341c32 2bcae12c795f32ddfbf8c80d1b5f1d3286341c32
Linux kernel = 5.10 No fix listed
Linux kernel < 5.10.227 5.10.227
Linux kernel < 5.15.168 5.15.168
Linux kernel < 6.1.113 6.1.113
Linux kernel < 6.6.55 6.6.55
Linux kernel < 6.10.14 6.10.14
Linux kernel < 6.11.3 6.11.3
Linux kernel < 6.12 6.12
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem < V1.1.1 V1.1.1
Siemens RUGGEDCOM RST2428P < V3.2 V3.2
Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family < V3.2 V3.2
Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family < V3.2 V3.2
ubuntu/linux(Ubuntu:24.04) < 6.8.0-54.56 6.8.0-54.56
ubuntu/linux-raspi(Ubuntu:24.04) < 6.8.0-1019.23 6.8.0-1019.23
Linux kernel >= 5.10, < 5.10.227 5.10.227
Linux kernel >= 5.11, < 5.15.168 5.15.168
Linux kernel >= 5.16, < 6.1.113 6.1.113
Linux kernel >= 6.2, < 6.6.55 6.6.55
Linux kernel >= 6.7, < 6.10.14 6.10.14
Linux kernel >= 6.11, < 6.11.3 6.11.3
Linux kernel = 6.12-rc1 No fix listed

References