CVE-2023-53169

Source
https://cve.org/CVERecord?id=CVE-2023-53169
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53169.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53169
Downstream
Published
2025-09-15T14:04:02.395Z
Modified
2026-07-15T01:48:58.475765129Z
Summary
x86/resctrl: Clear staged_config[] before and after it is used
Details

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

x86/resctrl: Clear staged_config[] before and after it is used

As a temporary storage, stagedconfig[] in rdtdomain should be cleared before and after it is used. The stale value in staged_config[] could cause an MSR access error.

Here is a reproducer on a system with 16 usable CLOSIDs for a 15-way L3 Cache (MBA should be disabled if the number of CLOSIDs for MB is less than 16.) : mount -t resctrl resctrl -o cdp /sys/fs/resctrl mkdir /sys/fs/resctrl/p{1..7} umount /sys/fs/resctrl/ mount -t resctrl resctrl /sys/fs/resctrl mkdir /sys/fs/resctrl/p{1..8}

An error occurs when creating resource group named p8: unchecked MSR access error: WRMSR to 0xca0 (tried to write 0x00000000000007ff) at rIP: 0xffffffff82249142 (cat_wrmsr+0x32/0x60) Call Trace: <IRQ> __flushsmpcallfunctionqueue+0x11d/0x170 _sysveccallfunction+0x24/0xd0 sysveccallfunction+0x89/0xc0 </IRQ> <TASK> asmsysveccallfunction+0x16/0x20

When creating a new resource control group, hardware will be configured by the following process: rdtgroupmkdir() rdtgroupmkdirctrlmon() rdtgroupinitalloc() resctrlarchupdate_domains()

resctrlarchupdatedomains() iterates and updates all resctrlconftype whose havenewctrl is true. Since stagedconfig[] holds the same values as when CDP was enabled, it will continue to update the CDPCODE and CDPDATA configurations. When group p8 is created, getconfigindex() called in resctrlarchupdatedomains() will return 16 and 17 as the CLOSIDs for CDPCODE and CDP_DATA, which will be translated to an invalid register - 0xca0 in this scenario.

Fix it by clearing staged_config[] before and after it is used.

[reinette: re-order commit tags]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53169.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
75408e43509ed6207870c0e7e28656acbbc1f7fd
Fixed
86db319d25db70cf4af4557e05f6fa6f39c70003
Fixed
3fc5941ecc31a495b6b84b465f36155009db99b5
Fixed
8ecc60ef9318f0d533b866fa421858cc185bccfc
Fixed
0424a7dfe9129b93f29b277511a60e87f052ac6b

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.104
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.21
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.8

Database specific

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