CVE-2025-38345

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38345
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38345.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38345
Downstream
Related
Published
2025-07-10T08:15:13.652Z
Modified
2025-11-28T02:35:46.114132Z
Summary
ACPICA: fix acpi operand cache leak in dswstate.c
Details

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] 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 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38345.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
4fa430a8bca708c7776f6b9d001257f48b19a5b7
Fixed
1c0d9115a001979cb446ba5e8331dd1d29a10bbf
Fixed
5a68893b594ee6ce0efce5f74c07e64e9dd0c2c4
Fixed
64c4bcf0308dd1d752ef31d560040b8725e29984
Fixed
755a8006b76792922ff7b1c9674d8897a476b5d7
Fixed
76d37168155880f2b04a0aad92ceb0f9d799950e
Fixed
e0783910ca4368b01466bc8dcdcc13c3e0b7db53
Fixed
156fd20a41e776bbf334bd5e45c4f78dfc90ce1c

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.4.295
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.239
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.186
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.142
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.95
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.35
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.4