CVE-2025-40028
published high CVSS 3.1 · 7.8binder: fix double-free in dbitmap
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux15d9da3f818cae676f822a04407d3c17b53357d2 to < c301ec61ce6f16e21a36b99225ca8a20c1591e10 · 15d9da3f818cae676f822a04407d3c17b53357d2 to < 0390633979969c54c0ce6a198d6f45cdbe2c84b1 · 15d9da3f818cae676f822a04407d3c17b53357d2 to < b781e5635a3398e2b64440371233c2c5102cd6cb · 15d9da3f818cae676f822a04407d3c17b53357d2 to < 3ebcd3460cad351f198c39c6edb4af519a0ed934 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 6.12.52 through 6.12.* (unaffected · semver) · 6.16.12 through 6.16.* (unaffected · semver) · 6.17.2 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| Ubuntu | questing | bpftool | Advisory build | 7.7.0+6.17.0-7.7 | USN-7906-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermaarch64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermppc64le | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longterms390x | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermx86_64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermaarch64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermppc64le | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longterms390x | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermx86_64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| Ubuntu | questing | linux | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-aws | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-aws-cloud-tools-6.17.0-1004 | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-aws-headers-6.17.0-1004 | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-aws-tools-6.17.0-1004 | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1003-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1004-aws | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1004-aws-64k | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1004-gcp | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1004-gcp-64k | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1005-raspi | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-buildinfo-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-7-generic-64k | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1003-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1004-aws | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1004-aws-64k | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-7 | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-cloud-tools-common | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-gcp | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-gcp-headers-6.17.0-1004 | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-gcp-tools-6.17.0-1004 | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-headers-6.17.0-1003-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-headers-6.17.0-1004-aws | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-headers-6.17.0-1004-aws-64k | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-headers-6.17.0-1004-gcp | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-headers-6.17.0-1004-gcp-64k | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-headers-6.17.0-1005-raspi | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-headers-6.17.0-7 | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-headers-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-headers-6.17.0-7-generic-64k | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-image-6.17.0-1005-raspi | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-image-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1003-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1004-aws | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1004-aws-64k | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1004-gcp | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1004-gcp-64k | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-7-generic-64k | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-lib-rust-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-modules-6.17.0-1003-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-modules-6.17.0-1004-aws | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-modules-6.17.0-1004-aws-64k | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-modules-6.17.0-1004-gcp | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-modules-6.17.0-1004-gcp-64k | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-modules-6.17.0-1005-raspi | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-modules-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-modules-6.17.0-7-generic-64k | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-modules-ipu6-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-modules-ipu7-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-modules-iwlwifi-6.17.0-1003-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-modules-iwlwifi-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-modules-usbio-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-modules-vision-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-perf | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-raspi | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-raspi-headers-6.17.0-1005 | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-raspi-tools-6.17.0-1005 | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-realtime-cloud-tools-6.17.0-1003 | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-realtime-headers-6.17.0-1003 | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-realtime-tools-6.17.0-1003 | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-source-6.17.0 | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-tools-6.17.0-1003-realtime | Advisory build | 6.17.0-1003.4 | USN-7906-1 |
| Ubuntu | questing | linux-tools-6.17.0-1004-aws | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-tools-6.17.0-1004-aws-64k | Advisory build | 6.17.0-1004.4 | USN-7906-1 |
| Ubuntu | questing | linux-tools-6.17.0-1004-gcp | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-tools-6.17.0-1004-gcp-64k | Advisory build | 6.17.0-1004.4 | USN-7906-2 |
| Ubuntu | questing | linux-tools-6.17.0-1005-raspi | Advisory build | 6.17.0-1005.5 | USN-7906-3 |
| Ubuntu | questing | linux-tools-6.17.0-7 | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-tools-6.17.0-7-generic | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-tools-6.17.0-7-generic-64k | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-tools-common | Advisory build | 6.17.0-7.7 | USN-7906-1 |
| Ubuntu | questing | linux-tools-host | Advisory build | 6.17.0-7.7 | USN-7906-1 |
Description
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached only through `ioctl()`/`write()` on a binder character device (`/dev/binder` or a binderfs device node), requiring a local process on the system. There is no remote or network-facing path into `binder_transaction()`. AC:L - The attacker fully controls both preconditions: the size of the failing `bitmap_zalloc()` (by creating hundreds of thousands of binder references so the doubling bitmap enters costly-order allocations that fail without invoking the OOM killer) and the memory pressure/fragmentation that makes it fail, then chooses exactly when the second free occurs by closing the fd. The window between the two frees is arbitrarily long, making heap grooming reliable. PR:L - Binder contains no `capable()` checks at all on this path; on Android every unprivileged app can open a binder device, and on distro kernels with CONFIG_ANDROID_BINDERFS an unprivileged user can mount binderfs inside a user namespace (`FS_USERNS_MOUNT`) and create devices without any capability. Only a basic local account is needed. UI:N - The attacking process performs everything itself — open the device, drive transactions to grow the bitmap, exhaust memory, then close the fd. No victim action is involved. S:U - The corruption is confined to the kernel's own heap/page allocator within the same security authority; there is no VM, IOMMU, or hypervisor boundary crossed. C:H - The double free lets the attacker reclaim the chunk with a chosen object and then have the kernel free it while still in use, producing a use-after-free with overlapping allocations that can be leveraged to read arbitrary kernel memory (credentials, keys, KASLR data). I:H - Freeing an in-use, attacker-sprayed object (or a costly-order page, giving cross-cache/physical-page reuse) yields a write primitive over kernel objects, enabling control-flow hijack and privilege escalation to root. A:H - Even unweaponized, the double free corrupts the SLUB freelist or page allocator and reliably panics the kernel (KASAN reports it as a `double-free` BUG), and the attacker can repeat it across many binder fds.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 15d9da3f818cae676f822a04407d3c17b53357d2 to < c301ec61ce6f16e21a36b99225ca8a20c1591e10 (affected · git)15d9da3f818cae676f822a04407d3c17b53357d2 to < 0390633979969c54c0ce6a198d6f45cdbe2c84b1 (affected · git)15d9da3f818cae676f822a04407d3c17b53357d2 to < b781e5635a3398e2b64440371233c2c5102cd6cb (affected · git)15d9da3f818cae676f822a04407d3c17b53357d2 to < 3ebcd3460cad351f198c39c6edb4af519a0ed934 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.11 (affected)0 to < 6.11 (unaffected · semver)6.12.52 through 6.12.* (unaffected · semver)6.16.12 through 6.16.* (unaffected · semver)6.17.2 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
binder: fix double-free in dbitmap
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 897e80311a100a262d9e8343c961cf09bfae277c5de2fcbc42924b3f412be1e5
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record