The attacks were on Android phones, but the bug lives in the same Linux kernel your servers run.

At a glance

  • CVE: CVE-2024-36971
  • Severity: 7.8 (High) on NVD and from the kernel’s own CVE team, and Red Hat rates it Important. Android’s bulletin and CISA’s KEV entry call it “remote code execution”, but NVD and the kernel CVE record both score it as a local attack: the attacker has to be running code on the device.
  • Affected: Linux 4.6 up to (but not including) 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.94, 6.6.34 and 6.9.4; it’s fixed in 6.10. That takes in Ubuntu 18.04 through 24.04, Debian 10 through 12, and RHEL 8 and 9 (plus RHEL 7 under extended support).
  • Known exploited: Yes. Google’s August 2024 Android bulletin said there were signs of limited, targeted exploitation, and CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2024-08-07.

What’s going on

Each network socket keeps a cached route, basically a note of where its packets should go. When a connection looks unhealthy, a helper called __dst_negative_advice() throws that cached route away. It did things in the wrong order: it released the old route before clearing the socket’s pointer to it. Another thread using the same socket could grab the stale pointer in that tiny window, and the kernel ends up using memory that’s already been freed. The bug had been around for a while but became reachable with UDP sockets. Clement Lecigne at Google tracked it down.

The kernel’s CVE record explains why it’s scored as local. The race is driven by two of the attacker’s own threads working the same socket, using calls that need no special privileges. Any unprivileged local process can do it, and the real-world exploit ran from a sandboxed Android app.

For web servers, treat it as local privilege escalation. Someone with a foothold as your web user could use it to become root.

Timeline

  • Fixed upstream: 2024-05-30 (commit 92f1655aa2b2, part of 6.10-rc2)
  • CVE published: 2024-06-10
  • Android bulletin flags exploitation: 2024-08-05
  • Added to CISA KEV: 2024-08-07
  • Distro patches: Red Hat shipped RHEL 8 updates on 2024-08-08 and RHEL 9 on 2024-08-15

== UPDATE ==

Fixes are in every maintained stable branch and in the major distros.

  • Patch available: Yep.
  • Fixed in: upstream 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.94, 6.6.34, 6.9.4, 6.10 and later. Distro examples: Ubuntu 24.04 kernel 6.8.0-44.44, Ubuntu 22.04 5.15.0-121.131, Ubuntu 20.04 5.4.0-192.212, Debian 12 “bookworm” 6.1.94-1, Debian 11 “bullseye” 5.10.221-1 (DSA-5730-1), RHEL 9 5.14.0-427.31.1.el9_4 and RHEL 8 4.18.0-553.16.1.el8_10. Check your distro’s tracker (linked below) for your release.
  • How to apply: update the kernel and reboot: sudo apt update && sudo apt upgrade on Debian/Ubuntu or sudo dnf upgrade --refresh on RHEL and friends. Then check uname -r. One heads-up from Red Hat: if you run third-party kernel modules that use negative_advice(), they may crash after this update, so check with the module vendor.
  • If you can’t patch yet: Red Hat looked for a workaround and couldn’t find a practical one. Patching is the fix.

References