Vulnerability · Published Apr 3, 2024 · Assigned by Linux

CVE-2024-26740net/sched: act_mirred: use the backlog for mirred ingress

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.2%top 92.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: net/sched: act_mirred: use the backlog for mirred ingress The test Davide added in commit ca22da2fbd69 ("act_mirred: use the backlog for nested calls to mirred ingress") hangs our testing VMs every 10 or so runs, with the familiar tcp_v4_rcv -> tcp_v4_rcv deadlock reported by lockdep. The problem as previously described by Davide (see Link) is that if we reverse flow of traffic with the redirect (egress -> ingress) we may reach the same socket which generated the packet. And we may still be holding its socket lock. The common solution to such deadlocks is to put the packet in the Rx backlog, rather than run the Rx path inline. Do that for all egress -> ingress reversals, not just once we started to nest mirred calls. In the past there was a concern that the backlog indirection will lead to loss of error reporting / less accurate stats. But the current workaround does not seem to address the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linuxno fix listedDEBIAN-CVE-2024-26740
Debian:13linux6.7.7-1DEBIAN-CVE-2024-26740
Debian:14linux6.7.7-1DEBIAN-CVE-2024-26740
Ubuntu:22.04:LTSlinuxno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-awsno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-azureno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-azure-fdeno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-gcpno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-gkeno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-gkeopno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-ibmno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-intel-iotgno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-kvmno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-lowlatencyno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-nvidiano fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-nvidia-tegrano fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-nvidia-tegra-igxno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-oracleno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-raspino fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-26740
Ubuntu:22.04:LTSlinux-xilinx-zynqmpno fix listedUBUNTU-CVE-2024-26740

Affected products (as reported)

VendorProductVersions
Linux Linux 53592b3640019f2834701093e38272fdfd367ad8 – before ac5c2ed6394c85f84877b1a1eec61cf004f90f4f53592b3640019f2834701093e38272fdfd367ad8 – before 7c787888d164689da8b1b115f3ef562c1e843af453592b3640019f2834701093e38272fdfd367ad8 – before 60ddea1600bc476e0f5e02bce0e29a460ccbf0be53592b3640019f2834701093e38272fdfd367ad8 – before 52f671db18823089a02f07efc04efdb2272ddc17
Linux Linux 4.10

References