Skip to main content

Linux Kernel CVE-2025-40028

HIGH
2025-10-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local process with binder access
  2. Delivery
    Open /dev/binder and grow proc->dmap
  3. Exploit
    Force allocation failure in dbitmap_grow (first free)
  4. Execution
    Terminate process to trigger second free
  5. Persist
    Corrupt kernel heap via double-free
  6. Impact
    Escalate privileges or crash kernel

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to the binder driver (e.g. the ability to open /dev/binder and issue binder ioctls, which any app/process on Android has by default) and, critically, forcing dbitmap_grow() to fail its bitmap allocation during proc->dmap expansion - the double-free only occurs on that allocation-failure path, then triggers when the same process terminates and binder_proc_dec_tmpref() frees the already-freed bitmap. The primary limiting factor is that the attacker must reliably drive the kernel into an allocation-failure condition (memory pressure), which is harder than a straight-line trigger; per CVSS PR:L this is authenticated local access rather than remote/unauthenticated. No network access, no user interaction, and no elevated privileges beyond a normal local process are needed, but the bug is confined to systems with binder enabled and reachable by the attacker.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (base 7.8, High) accurately reflects a locally exploitable, low-complexity, low-privilege heap corruption with high confidentiality, integrity and availability impact - consistent with a controllable kernel double-free that can escalate to arbitrary code execution or at minimum a denial of service. The EPSS score is low (0.19%, 9th percentile) and the CVE is not on the CISA KEV list, indicating no evidence of active or widespread exploitation. These signals are not in conflict: kernel double-frees are serious but require local access and non-trivial exploitation work to weaponize, so low EPSS alongside a high CVSS is expected rather than contradictory. The reliability of triggering the bug is itself gated by forcing an allocation failure in dbitmap_grow(), which raises real-world exploitation difficulty above what the raw AC:L rating suggests - verify triggerability under memory-pressure conditions. Overall this is a legitimate patch-worthy issue but not an emergency for most environments absent untrusted local code execution.

Exploit ScenarioDerived

A local attacker running unprivileged code with access to /dev/binder (for example a malicious app on Android or an untrusted local user on a binder-enabled host) induces memory pressure so that dbitmap_grow() fails while expanding proc->dmap, leaving a stale freed pointer. When the process later terminates, the kernel frees the same bitmap a second time, corrupting the heap; with careful heap grooming the attacker can shape the freed allocation to achieve privilege escalation or, more simply, crash the kernel. No public proof-of-concept has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege escalation and memory corruption in the Linux kernel's Android binder IPC driver arises from a double-free in the dynamic bitmap (dbitmap) allocator used for per-process reference tracking. When a process's dmap expansion fails, dbitmap_grow() frees the old bitmap, but the pointer is not cleared, so binder_proc_dec_tmpref() frees it a second time at process teardown, corrupting the kernel heap. This is a memory-safety flaw exploitable by any local user with binder access (default on Android and many Linux systems); there is no public exploit identified at time of analysis and the EPSS score is low (0.19%).

RemediationAI

Upstream fix available (multiple git.kernel.org stable commits); a released, tagged patched kernel version is not independently identified in the provided data - apply the stable-tree update from your distribution or Android security bulletin that incorporates commits 0390633979969c54c0ce6a198d6f45cdbe2c84b1 / 3ebcd3460cad351f198c39c6edb4af519a0ed934 / b781e5635a3398e2b64440371233c2c5102cd6cb / c301ec61ce6f16e21a36b99225ca8a20c1591e10 (the change simply marks proc->map NULL in dbitmap_free()). Rebuild or update to a kernel that includes these commits and reboot. Where immediate patching is not possible and binder is not required (typical of non-Android Linux servers), disabling or not loading the binder driver (CONFIG_ANDROID_BINDER_IPC / unloading binder_linux) removes the attack surface entirely at the cost of breaking any Android-container or binder-dependent workloads; on Android this is not a viable workaround since binder is core to the OS. There is no configuration-level mitigation that neutralizes the bug while keeping binder enabled, so restricting local/untrusted code execution on affected hosts is the main compensating control until patched.

Affected ProductsAI

The Linux kernel binder driver is affected; the reproducer was observed on kernel 6.17.0-rc6 and the bug exists in versions carrying the vulnerable dbitmap implementation prior to the fix. The four referenced git.kernel.org commits (0390633979969c54c0ce6a198d6f45cdbe2c84b1, 3ebcd3460cad351f198c39c6edb4af519a0ed934, b781e5635a3398e2b64440371233c2c5102cd6cb, c301ec61ce6f16e21a36b99225ca8a20c1591e10) represent the fix landing across mainline and stable branches. No CPE strings were provided in the input, so exact version ranges per stable series are not enumerated here; consult the linked stable commits and your distribution's advisory to confirm which longterm kernels (and Android common kernels) ship the vulnerable code. Practically, any system running an unpatched binder-enabled kernel - Android devices and Linux hosts using binder - should be considered in scope.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the binder driver (drivers/android/), the core inter-process communication mechanism used pervasively on Android and available in mainline Linux. Binder tracks node references per process using a bitmap ('proc->dmap') that grows on demand via dbitmap_grow(); on a failed allocation during growth, the old bitmap is freed by dbitmap_free(). The root cause is a classic CWE-415 (Double Free): dbitmap_free() releases the memory but leaves proc->map pointing at the freed allocation, so the same pointer is passed to kfree() again during binder_proc_dec_tmpref() when the process terminates. The KASAN trace confirms the freed object (allocated in binder_open via bitmap_zalloc) is released once in binder_inc_ref_for_node()'s growth path and again during deferred process cleanup. The fix sets proc->map = NULL in dbitmap_free() so the stale pointer cannot be freed twice. Note the vendor CWE is listed as N/A, but the behavior is unambiguously a double-free.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local binder access (PR:L, AV:L); AC:H because the double-free requires forcing an allocation failure in dbitmap_grow rather than a deterministic trigger; full kernel heap corruption yields high C/I/A.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

binder: fix double-free in dbitmap

A process might fail to allocate a new bitmap when trying to expand its proc->dmap. In that case, dbitmap_grow() fails and frees the old bitmap via dbitmap_free(). However, the driver calls dbitmap_free() again when the same process terminates, leading to a double-free error:

============== BUG: KASAN: double-free in binder_proc_dec_tmpref+0x2e0/0x55c Free of addr ffff00000b7c1420 by task kworker/9:1/209

CPU: 9 UID: 0 PID: 209 Comm: kworker/9:1 Not tainted 6.17.0-rc6-dirty #5 PREEMPT Hardware name: linux,dummy-virt (DT) Workqueue: events binder_deferred_func Call trace: kfree+0x164/0x31c binder_proc_dec_tmpref+0x2e0/0x55c binder_deferred_func+0xc24/0x1120 process_one_work+0x520/0xba4 [...]

Allocated by task 448: __kmalloc_noprof+0x178/0x3c0 bitmap_zalloc+0x24/0x30 binder_open+0x14c/0xc10 [...]

Freed by task 449: kfree+0x184/0x31c binder_inc_ref_for_node+0xb44/0xe44 binder_transaction+0x29b4/0x7fbc binder_thread_write+0x1708/0x442c binder_ioctl+0x1b50/0x2900 [...] ==============

Fix this issue by marking proc->map NULL in dbitmap_free().

Executive ViewAI

Why It Matters

CVE-2025-40028 affects Android devices and Linux systems with binder IPC functionality, allowing users with local system access to bypass privilege restrictions and gain elevated capabilities through memory corruption. The vulnerability carries a HIGH severity rating (CVSS 7.8) with no public exploit identified at time of analysis, but no vendor-released patch is currently available-forcing organizations to rely on protective controls rather than patching. For enterprises managing significant Android or Linux deployments, this creates ongoing risk to security boundaries that privilege isolation depends upon.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement interim mitigations: disable binder IPC on systems where functionality is not required; enforce SELinux or AppArmor mandatory access controls to restrict privilege escalation paths; enable kernel lockdown and SMACK modules; isolate critical applications using Linux namespaces or containerization; restrict unprivileged namespace operations via kernel parameters; establish monitoring for vendor kernel security updates.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel binder is core to all Android and many Linux systems
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy