{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38131","id":"CVE-2025-38131","title":"coresight: prevent deactivate active config while enabling the config","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: prevent deactivate active config while enabling the config\n\nWhile enable active config via cscfg_csdev_enable_active_config(),\nactive config could be deactivated via configfs' sysfs interface.\nThis could make UAF issue in below scenario:\n\nCPU0                                          CPU1\n(sysfs enable)                ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: prevent deactivate active config while enabling the config\n\nWhile enable active config via cscfg_csdev_enable_active_config(),\nactive config could be deactivated via configfs' sysfs interface.\nThis could make UAF issue in below scenario:\n\nCPU0                                          CPU1\n(sysfs enable)                                load module\n                                              cscfg_load_config_sets()\n                                              activate config. // sysfs\n                                              (sys_active_cnt == 1)\n...\ncscfg_csdev_enable_active_config()\nlock(csdev->cscfg_csdev_lock)\n// here load config activate by CPU1\nunlock(csdev->cscfg_csdev_lock)\n\n                                              deactivate config // sysfs\n                                              (sys_activec_cnt == 0)\n                                              cscfg_unload_config_sets()\n                                              unload module\n\n// access to config_desc which freed\n// while unloading module.\ncscfg_csdev_enable_config\n\nTo address this, use cscfg_config_desc's active_cnt as a reference count\n which will be holded when\n    - activate the config.\n    - enable the activated config.\nand put the module reference when config_active_cnt == 0.","published":"2025-07-03T08:35:35.036Z","updated":"2026-10-28T02:31:00.023762844Z","reserved":"2025-04-16T04:51:23.987Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f8cce2ff3c04361b8843d8489620fda8880f668b","lessThan":"dfe8224c9c7a43d356eb9f74b06868aa05f90223","status":"affected","versionType":"git"},{"version":"f8cce2ff3c04361b8843d8489620fda8880f668b","lessThan":"b3b4efa2e623aecaebd7c9b9e4171f5c659e9724","status":"affected","versionType":"git"},{"version":"f8cce2ff3c04361b8843d8489620fda8880f668b","lessThan":"31028812724cef7bd57a51525ce58a32a6d73b22","status":"affected","versionType":"git"},{"version":"f8cce2ff3c04361b8843d8489620fda8880f668b","lessThan":"ed42ee1ed05ff2f4c36938379057413a40c56680","status":"affected","versionType":"git"},{"version":"f8cce2ff3c04361b8843d8489620fda8880f668b","lessThan":"408c97c4a5e0b634dcd15bf8b8808b382e888164","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","lessThan":"5.15","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.94","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.34","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.3","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/dfe8224c9c7a43d356eb9f74b06868aa05f90223","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b3b4efa2e623aecaebd7c9b9e4171f5c659e9724","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/31028812724cef7bd57a51525ce58a32a6d73b22","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ed42ee1ed05ff2f4c36938379057413a40c56680","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/408c97c4a5e0b634dcd15bf8b8808b382e888164","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38131.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38131","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00203,"epssPercentile":0.10404,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38131","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38131","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38131","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38131","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}