CVE-2023-52559

Source
https://cve.org/CVERecord?id=CVE-2023-52559
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52559.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52559
Downstream
Related
Published
2024-03-02T21:59:33.301Z
Modified
2026-05-28T03:53:34.384843133Z
Summary
iommu/vt-d: Avoid memory allocation in iommu_suspend()
Details

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

iommu/vt-d: Avoid memory allocation in iommu_suspend()

The iommususpend() syscore suspend callback is invoked with IRQ disabled. Allocating memory with the GFPKERNEL flag may re-enable IRQs during the suspend callback, which can cause intermittent suspend/hibernation problems with the following kernel traces:

Calling iommususpend+0x0/0x1d0 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 15 at kernel/time/timekeeping.c:868 ktimeget+0x9b/0xb0 ... CPU: 0 PID: 15 Comm: rcupreempt Tainted: G U E 6.3-intel #r1 RIP: 0010:ktimeget+0x9b/0xb0 ... Call Trace: <IRQ> tickschedtimer+0x22/0x90 ? __pfxticksched_timer+0x10/0x10 __hrtimerrunqueues+0x111/0x2b0 hrtimer_interrupt+0xfa/0x230 __sysvecapictimerinterrupt+0x63/0x140 sysvecapictimerinterrupt+0x7b/0xa0 </IRQ> <TASK> asmsysvecapictimerinterrupt+0x1f/0x30 ... ------------[ cut here ]------------ Interrupts enabled after iommususpend+0x0/0x1d0 WARNING: CPU: 0 PID: 27420 at drivers/base/syscore.c:68 syscoresuspend+0x147/0x270 CPU: 0 PID: 27420 Comm: rtcwake Tainted: G U W E 6.3-intel #r1 RIP: 0010:syscoresuspend+0x147/0x270 ... Call Trace: <TASK> hibernationsnapshot+0x25b/0x670 hibernate+0xcd/0x390 statestore+0xcf/0xe0 kobjattrstore+0x13/0x30 sysfskfwrite+0x3f/0x50 kernfsfopwriteiter+0x128/0x200 vfswrite+0x1fd/0x3c0 ksyswrite+0x6f/0xf0 __x64syswrite+0x1d/0x30 dosyscall64+0x3b/0x90 entrySYSCALL64afterhwframe+0x72/0xdc

Given that only 4 words memory is needed, avoid the memory allocation in iommu_suspend().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52559.json",
    "cna_assigner": "Linux"
}
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
33e07157105e472b746b70b3ed4197c57c43ab68
Fixed
29298c85a81abdc512e87537515ed4b1a9601d0e
Fixed
c12ef025add77ca3a0902e8719d552b6d47b4282
Fixed
496c591f0b389eb782f36d9d4c2564b9a865eed0
Fixed
59df44bfb0ca4c3ee1f1c3c5d0ee8e314844799e

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52559.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.136
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.57
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.5.7

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52559.json"