# CVE-2026-58828: Android kernel use-after-free in dmabuf accounting in base.c

Source: https://junglewise.ai/threats/cve-2026-58828-in-multiple-functions-of-base-c-there-is-a-possible-use-after  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-02. Updated: 2026-11-02  
License: CC BY 4.0 with a link back

CVE-2026-58828 · Severity: info · Published 2026-11-02

A race condition in the Android kernel's dmabuf accounting code could allow a local attacker to trigger a use-after-free vulnerability. An attacker with regular user privileges could exploit this during concurrent exec() operations to achieve privilege escalation, gaining root access on an affected device.

Technologies: [Google Android kernel](https://junglewise.ai/threats/technologies/google-android-kernel). Vendors: [Google](https://junglewise.ai/threats/vendors/google).

## Quick answers

**Is CVE-2026-58828 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-58828 being exploited in the wild.

**How severe is CVE-2026-58828?** Informational severity, published 2 November 2026.

**Which products and versions are affected?** Google Android kernel affected versions prior to fix commit 0285abdfbfb9f99898d647dafb2ea7d4bdd22527.

**Is there a fix for CVE-2026-58828?** Yes: fixed in Android kernel commit 0285abdfbfb9f99898d647dafb2ea7d4bdd22527 and later. Until then: Apply kernel patches that take a temporary reference on the task's dmabuf_info under task_lock() to prevent concurrent freeing during exec() or related operations. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-58828 attacked?** It is attacked with local access, in an operating system.

**Am I affected by CVE-2026-58828?** Check whether you run Google Android kernel at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in Android kernel commit 0285abdfbfb9f99898d647dafb2ea7d4bdd22527 and later

Apply kernel patches that take a temporary reference on the task's dmabuf_info under task_lock() to prevent concurrent freeing during exec() or related operations.

## Technical details

A use-after-free vulnerability exists in fs/proc/base.c in functions proc_dmabuf_rss_show, proc_dmabuf_rss_hwm_show, proc_dmabuf_rss_hwm_write, and proc_dmabuf_pss_show due to a race condition where a task's dmabuf_info struct can be freed by exec() while being read without holding a reference. An unprivileged local attacker can trigger this race by calling exec() concurrently with reading procfs dmabuf accounting files, leading to use-after-free and privilege escalation.

## Affected products

- Google Android kernel affected versions prior to fix commit 0285abdfbfb9f99898d647dafb2ea7d4bdd22527

## Timeline

- 2026-11-02: disclosed

## References

- [https://android.googlesource.com/kernel/common/+/0285abdfbfb9f99898d647dafb2ea7d4bdd22527](https://android.googlesource.com/kernel/common/+/0285abdfbfb9f99898d647dafb2ea7d4bdd22527)
- [https://android.googlesource.com/kernel/common/+/b597ddd55fd100d3eca5b9c2024a5a09dcc950ec](https://android.googlesource.com/kernel/common/+/b597ddd55fd100d3eca5b9c2024a5a09dcc950ec)

## Related threats

- [Android kernel SMMU stale TLB entry escalation](https://junglewise.ai/threats/cve-2026-56930-in-smmu-find-ste-of-smmu-c-there-is-a-possible-way-to-retain)
- [Android Kernel out-of-bounds read in KVM trace buffer initialization](https://junglewise.ai/threats/cve-2026-59048-in-rb-cpu-init-of-trace-c-there-is-a-possible-out-of-bounds-read)
- [Android Kernel KVM race condition memory corruption](https://junglewise.ai/threats/cve-2026-59045-in-multiple-locations-there-is-a-possible-memory-corruption-due)
- [Android kernel out-of-bounds write in pKVM MMU race condition](https://junglewise.ai/threats/cve-2026-59042-in-pkvm-pages-to-ppages-of-mmu-c-there-is-a-possible-out-of)
- [Android kernel integer overflow in VMA padding](https://junglewise.ai/threats/cve-2026-58845-in-multiple-locations-there-is-a-possible-out-of-bounds-write-due)
