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

Published Jul 10, 2025
·
Updated

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, kmemcachedestroy() 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: AELIMIT, 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] kmemcachedestroy 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 gmbh virtualbox/virtualbox, BIOS virtualbox 12/01/2006 [ 0.609177] Call Trace: [ 0.610063] ? dumpstack+0x5c/0x81 [ 0.611118] ? kmemcachedestroy+0x1aa/0x1c0 [ 0.612632] ? acpisleepprocinit+0x27/0x27 [ 0.613906] ? acpiosdeletecache+0xa/0x10 [ 0.617986] ? acpiutdeletecaches+0x3f/0x7b [ 0.619293] ? acpiterminate+0xa/0x14 [ 0.620394] ? acpiinit+0x2af/0x34f [ 0.621616] ? classcreate+0x4c/0x80 [ 0.623412] ? videosetup+0x7f/0x7f [ 0.624585] ? acpisleepprocinit+0x27/0x27 [ 0.625861] ? dooneinitcall+0x4e/0x1a0 [ 0.627513] ? kernelinitfreeable+0x19e/0x21f [ 0.628972] ? restinit+0x80/0x80 [ 0.630043] ? kernelinit+0xa/0x100 [ 0.631084] ? retfromfork+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] pcibus 0000:00: root bus resource [io 0x0000-0xffff] ... Continue to boot and log is omitted ...

I analyzed this memory leak in detail and found acpidsobjstackpopand delete() function miscalculated the top of the stack. acpidsobjstackpush() function uses walkstate->operandindex for start position of the top, but acpidsobjstackpopanddelete() 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 Software

10 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel<5.4.295
Linux Linux kernel>=5.5<5.10.239
Linux Linux kernel>=5.11<5.15.186
Linux Linux kernel>=5.16<6.1.142
Linux Linux kernel>=6.2<6.6.95
Linux Linux kernel>=6.7<6.12.35
Linux Linux kernel>=6.13<6.15.4
Debian Debian Linux=11.0
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Upgrade

    Upgrade Linux kernel ACPICA to a version that resolves this vulnerability.

    Patch 987a3b5cf7175916e2a4b6ea5b8e70f830dfe732

Event History

Jul 10, 2025
CVE Published
via MITRE·08:15 AM
Data Sourced
via MITRE·08:15 AM
Description
Data Sourced
via Red Hat·09:02 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-38345?

CVE-2025-38345 has not been assigned a CVSS severity score but is related to a cache leak in the ACPI system of the Linux kernel.

2

How do I fix CVE-2025-38345?

To fix CVE-2025-38345, update to the latest patched version of the Linux kernel that addresses the ACPICA cache leak.

3

What systems are affected by CVE-2025-38345?

CVE-2025-38345 affects systems running vulnerable versions of the Linux kernel that implement the ACPICA.

4

What type of vulnerability is CVE-2025-38345?

CVE-2025-38345 is a memory-related vulnerability involving a cache leak in the Linux kernel's ACPI component.

5

When was CVE-2025-38345 published?

CVE-2025-38345 was published following the disclosure of an ACPI cache leak found in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203