CVE-2025-38298

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38298
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38298.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38298
Downstream
Related
Published
2025-07-10T07:42:11.553Z
Modified
2025-11-28T02:34:59.875604Z
Summary
EDAC/skx_common: Fix general protection fault
Details

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

EDAC/skx_common: Fix general protection fault

After loading i10nmedac (which automatically loads skxedaccommon), if unload only i10nmedac, then reload it and perform error injection testing, a general protection fault may occur:

mce: [Hardware Error]: Machine check events logged Oops: general protection fault ... ... Workqueue: events mcegenpoolprocess RIP: 0010:string+0x53/0xe0 ... Call Trace: <TASK> ? dieaddr+0x37/0x90 ? excgeneralprotection+0x1e7/0x3f0 ? asmexcgeneralprotection+0x26/0x30 ? string+0x53/0xe0 vsnprintf+0x23e/0x4c0 snprintf+0x4d/0x70 skxadxldecode+0x16a/0x330 [skxedaccommon] skxmcecheckerror.part.0+0xf8/0x220 [skxedaccommon] skxmcecheckerror+0x17/0x20 [skxedac_common] ...

The issue arose was because the variable 'adxlcomponentcount' (inside skxedaccommon), which counts the ADXL components, was not reset. During the reloading of i10nm_edac, the count was incremented by the actual number of ADXL components again, resulting in a count that was double the real number of ADXL components. This led to an out-of-bounds reference to the ADXL component array, causing the general protection fault above.

Fix this issue by resetting the 'adxlcomponentcount' in adxlput(), which is called during the unloading of {skx,i10nm}edac.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38298.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
c68d1dbfe381260e8e30880fa6b8e708e57143f6
Fixed
80bf28fd623d97dd4f4825fbbe9d736cec2afba3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3070e81609169b316e3e3f226456950238338d43
Fixed
a6ed3a6edff09c1187cc6ade7f5967bca2376a13
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2259b26ff45a231579485752bda51acf87c39d18
Fixed
bf6a8502a5f4ff6e4d135d795945cdade49ec8b0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6d0d9f0fd13536ed21b9c0dd576ba292f750a1c1
Fixed
e8530ed3c0769a4d8f79c212715ec1cf277787f8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c25ae63de6805589e954b86020f89065b9eca4d4
Fixed
3f5d0659000923735350da60ad710f8c804544fe
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
123b158635505c89ed0d3ef45c5845ff9030a466
Fixed
a13e8343ffcff27af1ff79597ff7ba241e6d9471
Fixed
31ef6f7c9aee3be78d63789653e92350f2537f93
Fixed
20d2d476b3ae18041be423671a8637ed5ffd6958
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
32700ecf8007e071d1ce4c78f65b85f46d05f32a

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.94
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.34
Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.15.3