CVE-2024-47728 bpf: Zero former ARG_PTR_TO_{LONG,INT} args in case of error
- 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: Zero former ARG_PTR_TO_{LONG,INT} args in case of error
For all non-tracing helpers which formerly had ARG_PTR_TO_{LONG,INT} as input
arguments, zero the value for the case of an error as otherwise it could leak
memory. For tracing, it is not needed given CAP_PERFMON can already read all
kernel memory anyway hence bpf_get_func_arg() and bpf_get_func_ret() is skipped
in here.
Also, the MTU helpers mtu_len pointer value is being written but also read.
Technically, the MEM_UNINIT should not be there in order to always force init.
Removing MEM_UNINIT needs more verifier rework though: MEM_UNINIT right now
implies two things actually: i) write into memory, ii) memory does not have
to be initialized. If we lift MEM_UNINIT, it then becomes: i) read into memory,
ii) memory must be initialized. This means that for bpf_*_check_mtu() we're
readding the issue we're trying to fix, that is, it would then be able to
write back into things like .rodata BPF maps. Follow-up work will rework the
MEM_UNINIT semantics such that the intent can be better expressed. For now
just clear the *mtu_len on error path which can be lifted later again.
Upgrade path
10 packages: 7 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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 | 4b3786a6c5397dc220b1483d8e2f4867743e966f, 6.1.113, 6.6.54, 6.10.13, 6.11.2, 6.12, 594a9f5a8d2de2573a856e506f77ba7dd2cefc6a, 599d15b6d03356a97bff7a76155c5604c42a2962, 8397bf78988f3ae9dbebb0200189a62a57264980, a634fa8e480ac2423f86311a602f6295df2c8ed0 | 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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 | >= d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 8397bf78988f3ae9dbebb0200189a62a57264980 | 8397bf78988f3ae9dbebb0200189a62a57264980 |
| Linux kernel | >= d7a4cb9b6705a89937d12c8158a35a3145dc967a, < a634fa8e480ac2423f86311a602f6295df2c8ed0 | a634fa8e480ac2423f86311a602f6295df2c8ed0 |
| Linux kernel | >= d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 599d15b6d03356a97bff7a76155c5604c42a2962 | 599d15b6d03356a97bff7a76155c5604c42a2962 |
| Linux kernel | >= d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 594a9f5a8d2de2573a856e506f77ba7dd2cefc6a | 594a9f5a8d2de2573a856e506f77ba7dd2cefc6a |
| Linux kernel | >= d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 4b3786a6c5397dc220b1483d8e2f4867743e966f | 4b3786a6c5397dc220b1483d8e2f4867743e966f |
| Linux kernel | = 5.2 | 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 | >= 5.2, < 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
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-47728 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7276-1 vendor-advisory
- USN-7277-1 vendor-advisory
- USN-7301-1 vendor-advisory
- USN-7303-1 vendor-advisory
- USN-7304-1 vendor-advisory
- USN-7303-2 vendor-advisory
- USN-7310-1 vendor-advisory
- USN-7311-1 vendor-advisory
- USN-7303-3 vendor-advisory
- USN-7384-1 vendor-advisory
- USN-7385-1 vendor-advisory
- USN-7386-1 vendor-advisory
- USN-7384-2 vendor-advisory
- USN-7403-1 vendor-advisory
- USN-7468-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org