CVE-2025-38131

Source
https://cve.org/CVERecord?id=CVE-2025-38131
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38131.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38131
Downstream
Related
Published
2025-07-03T08:35:35.036Z
Modified
2026-03-20T12:42:41.366188Z
Summary
coresight: prevent deactivate active config while enabling the config
Details

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

coresight: prevent deactivate active config while enabling the config

While enable active config via cscfgcsdevenableactiveconfig(), active config could be deactivated via configfs' sysfs interface. This could make UAF issue in below scenario:

CPU0 CPU1 (sysfs enable) load module cscfgloadconfigsets() activate config. // sysfs (sysactivecnt == 1) ... cscfgcsdevenableactiveconfig() lock(csdev->cscfgcsdevlock) // here load config activate by CPU1 unlock(csdev->cscfgcsdev_lock)

                                          deactivate config // sysfs
                                          (sys_activec_cnt == 0)
                                          cscfg_unload_config_sets()
                                          unload module

// access to configdesc which freed // while unloading module. cscfgcsdevenableconfig

To address this, use cscfgconfigdesc's activecnt as a reference count which will be holded when - activate the config. - enable the activated config. and put the module reference when configactive_cnt == 0.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38131.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
f8cce2ff3c04361b8843d8489620fda8880f668b
Fixed
dfe8224c9c7a43d356eb9f74b06868aa05f90223
Fixed
b3b4efa2e623aecaebd7c9b9e4171f5c659e9724
Fixed
31028812724cef7bd57a51525ce58a32a6d73b22
Fixed
ed42ee1ed05ff2f4c36938379057413a40c56680
Fixed
408c97c4a5e0b634dcd15bf8b8808b382e888164

Database specific

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