Skip to content

CVE-2024-47675 bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()

HighCVSS 7.8 EPSS 0.24%
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:

bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()

If bpf_link_prime() fails, bpf_uprobe_multi_link_attach() goes to the
error_free label and frees the array of bpf_uprobe's without calling
bpf_uprobe_unregister().

This leaks bpf_uprobe->uprobe and worse, this frees bpf_uprobe->consumer
without removing it from the uprobe->consumers list.

Upgrade path

6 packages: 6 fixed.

PackageAffectedFixed inStatus
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.6.54; < 6.10.13; < 6.11.2; < 6.12 +8 more 5fe6e308abaea082c20fbf2aa5df8e14495622cf, 6.6.54, 6.10.13, 6.11.2, 6.12, 7c1d782e5afbf7c50ba74ecc4ddc18a05d63e5ee, 790c630ab0e7d7aba6d186581d4627c09fce60f3, cdf27834c3dd5d9abf7eb8e4ee87ee9e307eb25c 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:13) < 6.11.2-1 6.11.2-1
debian/linux(Debian:14) < 6.11.2-1 6.11.2-1
Linux kernel >= 89ae89f53d201143560f1e9ed4bfa62eee34f88e, < 790c630ab0e7d7aba6d186581d4627c09fce60f3 790c630ab0e7d7aba6d186581d4627c09fce60f3
Linux kernel >= 89ae89f53d201143560f1e9ed4bfa62eee34f88e, < 7c1d782e5afbf7c50ba74ecc4ddc18a05d63e5ee 7c1d782e5afbf7c50ba74ecc4ddc18a05d63e5ee
Linux kernel >= 89ae89f53d201143560f1e9ed4bfa62eee34f88e, < cdf27834c3dd5d9abf7eb8e4ee87ee9e307eb25c cdf27834c3dd5d9abf7eb8e4ee87ee9e307eb25c
Linux kernel >= 89ae89f53d201143560f1e9ed4bfa62eee34f88e, < 5fe6e308abaea082c20fbf2aa5df8e14495622cf 5fe6e308abaea082c20fbf2aa5df8e14495622cf
Linux kernel = 6.6 No fix listed
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 >= 6.6, < 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