CVE-2024-26926 binder: check offset alignment in binder_get_object()
Missing offset alignment check in the Linux kernel binder driver allows memory corruption, potentially leading to privilege escalation or code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26926?
CVE-2024-26926 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 24 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
binder: check offset alignment in binder_get_object()
Commit 6d98eb95b450 ("binder: avoid potential data leakage when copying txn") introduced changes to how binder objects are copied. In doing so, it unintentionally removed an offset alignment check done through calls to binder_alloc_copy_from_buffer() -> check_buffer().
These calls were replaced in binder_get_object() with copy_from_user(), so now an explicit offset alignment check is needed here. This avoids later complications when unwinding the objects gets harder.
It is worth noting this check existed prior to commit 7a67a39320df ("binder: add function to copy binder object from buffer"), likely removed due to redundancy at the time.
Which versions are affected by CVE-2024-26926?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-26926?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-26926 being exploited?
There is no known exploitation of CVE-2024-26926 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as A-320661088, ASB-A-320661088, BELL-CVE-2024-26926, DEBIAN-CVE-2024-26926, GHSA-g993-hcw2-pmmf, UBUNTU-CVE-2024-26926.