Skip to content

CVE-2024-47678 icmp: change the order of rate limits

MediumCVSS 5.5 EPSS 0.61%
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:

icmp: change the order of rate limits

ICMP messages are ratelimited :

After the blamed commits, the two rate limiters are applied in this order:

  1. host wide ratelimit (icmp_global_allow())

  2. Per destination ratelimit (inetpeer based)

In order to avoid side-channels attacks, we need to apply
the per destination check first.

This patch makes the following change :

  1. icmp_global_allow() checks if the host wide limit is reached.
    But credits are not yet consumed. This is deferred to 3)

  2. The per destination limit is checked/updated.
    This might add a new node in inetpeer tree.

  3. icmp_global_consume() consumes tokens if prior operations succeeded.

This means that host wide ratelimit is still effective
in keeping inetpeer tree small even under DDOS.

As a bonus, I removed icmp_global.lock as the fast path
can use a lock-free operation.

Upgrade path

10 packages: 7 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/linux(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/linux-kvm(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/linux-raspi(Ubuntu 22.04) All versions No fix listed No fix yet
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.2-1 6.11.2-1 Fixed
debian/linux(Debian 14) < 6.11.2-1 6.11.2-1 Fixed
Linux kernel < 6.1.113; < 6.6.54; < 6.10.13; < 6.11.2 +11 more 6.1.113, 6.6.54, 6.10.13, 6.11.2, 6.12, 8c2bd38b95f75f3d2a08c93e35303e26d480d24e, 662ec52260cc07b9ae53ecd3925183c29d34288b, 997ba8889611891f91e8ad83583466aeab6239a3, 483397b4ba280813e4a9c161a0a85172ddb43d19, a7722921adb046e3836eb84372241f32584bdb07 Fixed
Microsoft azure linux < 6.6.56.1-5 6.6.56.1-5 Fixed
ubuntu/linux(Ubuntu 24.04) < 6.8.0-54.56 6.8.0-54.56 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.56.1-5 6.6.56.1-5
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 29 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.2-1 6.11.2-1
debian/linux(Debian:14) < 6.11.2-1 6.11.2-1
ubuntu/linux(Ubuntu:22.04) All versions No fix listed
ubuntu/linux-kvm(Ubuntu:22.04) All versions No fix listed
ubuntu/linux-raspi(Ubuntu:22.04) All versions No fix listed
Linux kernel >= 4cdf507d54525842dfd9f6313fdafba039084046, < 997ba8889611891f91e8ad83583466aeab6239a3 997ba8889611891f91e8ad83583466aeab6239a3
Linux kernel >= 4cdf507d54525842dfd9f6313fdafba039084046, < 662ec52260cc07b9ae53ecd3925183c29d34288b 662ec52260cc07b9ae53ecd3925183c29d34288b
Linux kernel >= 4cdf507d54525842dfd9f6313fdafba039084046, < a7722921adb046e3836eb84372241f32584bdb07 a7722921adb046e3836eb84372241f32584bdb07
Linux kernel >= 4cdf507d54525842dfd9f6313fdafba039084046, < 483397b4ba280813e4a9c161a0a85172ddb43d19 483397b4ba280813e4a9c161a0a85172ddb43d19
Linux kernel >= 4cdf507d54525842dfd9f6313fdafba039084046, < 8c2bd38b95f75f3d2a08c93e35303e26d480d24e 8c2bd38b95f75f3d2a08c93e35303e26d480d24e
Linux kernel = 3.18 No fix listed
Linux kernel < 6.1.113 6.1.113
Linux kernel < 6.6.54 6.6.54
Linux kernel < 6.10.13 6.10.13
Linux kernel < 6.11.2 6.11.2
Linux kernel < 6.12 6.12
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 >= 3.18, < 6.1.113 6.1.113
Linux kernel >= 6.2, < 6.6.54 6.6.54
Linux kernel >= 6.7, < 6.10.13 6.10.13
Linux kernel >= 6.11, < 6.11.2 6.11.2

References