# CVE-2025-38345: ACPICA: fix acpi operand cache leak in dswstate.c

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-07-10T08:15:13.652Z
- **Modified:** 2026-11-05T21:18:28.260Z

## Who should check

- Anyone running Linux \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 4fa430a8bca708c7776f6b9d001257f48b19a5b7; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 1c0d9115a001979cb446ba5e8331dd1d29a10bbf; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 64c4bcf0308dd1d752ef31d560040b8725e29984; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 755a8006b76792922ff7b1c9674d8897a476b5d7; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 76d37168155880f2b04a0aad92ceb0f9d799950e; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< e0783910ca4368b01466bc8dcdcc13c3e0b7db53; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 156fd20a41e776bbf334bd5e45c4f78dfc90ce1c
- Anyone running Linux 2.6.26

## Description

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

ACPICA: fix acpi operand cache leak in dswstate.c

ACPICA commit 987a3b5cf7175916e2a4b6ea5b8e70f830dfe732

I found an ACPI cache leak in ACPI early termination and boot continuing case.

When early termination occurs due to malicious ACPI table, Linux kernel
terminates ACPI function and continues to boot process. While kernel terminates
ACPI function, kmem\_cache\_destroy() reports Acpi-Operand cache leak.

Boot log of ACPI operand cache leak is as follows:
\>\[    0.585957\] ACPI: Added \_OSI(Module Device)
\>\[    0.587218\] ACPI: Added \_OSI(Processor Device)
\>\[    0.588530\] ACPI: Added \_OSI(3.0 \_SCP Extensions)
\>\[    0.589790\] ACPI: Added \_OSI(Processor Aggregator Device)
\>\[    0.591534\] ACPI Error: Illegal I/O port address/length above 64K: C806E00000004002/0x2 (20170303/hwvalid-155)
\>\[    0.594351\] ACPI Exception: AE\_LIMIT, Unable to initialize fixed events (20170303/evevent-88)
\>\[    0.597858\] ACPI: Unable to start the ACPI Interpreter
\>\[    0.599162\] ACPI Error: Could not remove SCI handler (20170303/evmisc-281)
\>\[    0.601836\] kmem\_cache\_destroy Acpi-Operand: Slab cache still has objects
\>\[    0.603556\] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.12.0-rc5 \#26
\>\[    0.605159\] Hardware name: innotek gmb\_h virtual\_box/virtual\_box, BIOS virtual\_box 12/01/2006
\>\[    0.609177\] Call Trace:
\>\[    0.610063\]  ? dump\_stack+0x5c/0x81
\>\[    0.611118\]  ? kmem\_cache\_destroy+0x1aa/0x1c0
\>\[    0.612632\]  ? acpi\_sleep\_proc\_init+0x27/0x27
\>\[    0.613906\]  ? acpi\_os\_delete\_cache+0xa/0x10
\>\[    0.617986\]  ? acpi\_ut\_delete\_caches+0x3f/0x7b
\>\[    0.619293\]  ? acpi\_terminate+0xa/0x14
\>\[    0.620394\]  ? acpi\_init+0x2af/0x34f
\>\[    0.621616\]  ? \_\_class\_create+0x4c/0x80
\>\[    0.623412\]  ? video\_setup+0x7f/0x7f
\>\[    0.624585\]  ? acpi\_sleep\_proc\_init+0x27/0x27
\>\[    0.625861\]  ? do\_one\_initcall+0x4e/0x1a0
\>\[    0.627513\]  ? kernel\_init\_freeable+0x19e/0x21f
\>\[    0.628972\]  ? rest\_init+0x80/0x80
\>\[    0.630043\]  ? kernel\_init+0xa/0x100
\>\[    0.631084\]  ? ret\_from\_fork+0x25/0x30
\>\[    0.633343\] vgaarb: loaded
\>\[    0.635036\] EDAC MC: Ver: 3.0.0
\>\[    0.638601\] PCI: Probing PCI hardware
\>\[    0.639833\] PCI host bridge to bus 0000:00
\>\[    0.641031\] pci\_bus 0000:00: root bus resource \[io  0x0000-0xffff\]
\> ... Continue to boot and log is omitted ...

I analyzed this memory leak in detail and found acpi\_ds\_obj\_stack\_pop\_and\_
delete() function miscalculated the top of the stack. acpi\_ds\_obj\_stack\_push()
function uses walk\_state-\>operand\_index for start position of the top, but
acpi\_ds\_obj\_stack\_pop\_and\_delete() function considers index 0 for it.
Therefore, this causes acpi operand memory leak.

This cache leak causes a security threat because an old kernel (\<= 4.9) shows
memory locations of kernel functions in stack dump. Some malicious users
could use this information to neutralize kernel ASLR.

I made a patch to fix ACPI operand cache leak.

## Affected and fixed versions

- Linux: \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 4fa430a8bca708c7776f6b9d001257f48b19a5b7; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 1c0d9115a001979cb446ba5e8331dd1d29a10bbf; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 64c4bcf0308dd1d752ef31d560040b8725e29984; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 755a8006b76792922ff7b1c9674d8897a476b5d7; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 76d37168155880f2b04a0aad92ceb0f9d799950e; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< e0783910ca4368b01466bc8dcdcc13c3e0b7db53; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 156fd20a41e776bbf334bd5e45c4f78dfc90ce1c (cvelist)
- Linux: 2.6.26 (cvelist)

## Mitigation

- Upgrade Linux to 156fd20a41e776bbf334bd5e45c4f78dfc90ce1c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38345. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38345.md
Affected: Linux >= 773069d48030e670cf2032a13ddf16a2e0034df3, < 4fa430a8bca708c7776f6b9d001257f48b19a5b7; >= 773069d48030e670cf2032a13ddf16a2e0034df3, < 1c0d9115a001979cb446ba5e8331dd1d29a10bbf; >= 773069d48030e670cf2032a13ddf16a2e0034df3, < 5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4; >= 773069d48030e670cf2032a…
Fixed in: Linux 4fa430a8bca708c7776f6b9d001257f48b19a5b7, Linux 1c0d9115a001979cb446ba5e8331dd1d29a10bbf, Linux 5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4, Linux 64c4bcf0308dd1d752ef31d560040b8725e29984, Linux 755a8006b76792922ff7b1c9674d8897a476b5d7, Linux 76d37168155880f2b04a0aad92ceb0f9d799950e, Linux 156fd…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38345 being exploited?

There is no confirmed exploitation: CVE-2025-38345 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38345?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38345?

Linux \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 4fa430a8bca708c7776f6b9d001257f48b19a5b7; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 1c0d9115a001979cb446ba5e8331dd1d29a10bbf; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 64c4bcf0308dd1d752ef31d560040b8725e29984; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 755a8006b76792922ff7b1c9674d8897a476b5d7; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 76d37168155880f2b04a0aad92ceb0f9d799950e; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< e0783910ca4368b01466bc8dcdcc13c3e0b7db53; \>= 773069d48030e670cf2032a13ddf16a2e0034df3, \< 156fd20a41e776bbf334bd5e45c4f78dfc90ce1c; Linux 2.6.26.

### Is there a fix for CVE-2025-38345?

Yes. Fixed in Linux 4fa430a8bca708c7776f6b9d001257f48b19a5b7, Linux 1c0d9115a001979cb446ba5e8331dd1d29a10bbf, Linux 5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4, Linux 64c4bcf0308dd1d752ef31d560040b8725e29984, Linux 755a8006b76792922ff7b1c9674d8897a476b5d7, Linux 76d37168155880f2b04a0aad92ceb0f9d799950e, Linux 156fd20a41e776bbf334bd5e45c4f78dfc90ce1c. Upgrade Linux to 156fd20a41e776bbf334bd5e45c4f78dfc90ce1c or later.

### How do I check if I'm affected by CVE-2025-38345?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4fa430a8bca708c7776f6b9d001257f48b19a5b7>
- patch: <https://git.kernel.org/stable/c/1c0d9115a001979cb446ba5e8331dd1d29a10bbf>
- patch: <https://git.kernel.org/stable/c/5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4>
- patch: <https://git.kernel.org/stable/c/64c4bcf0308dd1d752ef31d560040b8725e29984>
- patch: <https://git.kernel.org/stable/c/755a8006b76792922ff7b1c9674d8897a476b5d7>
- patch: <https://git.kernel.org/stable/c/76d37168155880f2b04a0aad92ceb0f9d799950e>
- patch: <https://git.kernel.org/stable/c/e0783910ca4368b01466bc8dcdcc13c3e0b7db53>
- patch: <https://git.kernel.org/stable/c/156fd20a41e776bbf334bd5e45c4f78dfc90ce1c>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38345>

HTML: <https://flawdb.com/CVE-2025-38345> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38345>
