{"id":"CVE-2025-38131","published":"2025-07-03T08:35:35Z","modified":"2026-05-11T21:21:51Z","title":"coresight: prevent deactivate active config while enabling the config","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00293,"percentile":0.14403,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/dfe8224c9c7a43d356eb9f74b06868aa05f90223","tags":[]},{"url":"https://git.kernel.org/stable/c/b3b4efa2e623aecaebd7c9b9e4171f5c659e9724","tags":[]},{"url":"https://git.kernel.org/stable/c/31028812724cef7bd57a51525ce58a32a6d73b22","tags":[]},{"url":"https://git.kernel.org/stable/c/ed42ee1ed05ff2f4c36938379057413a40c56680","tags":[]},{"url":"https://git.kernel.org/stable/c/408c97c4a5e0b634dcd15bf8b8808b382e888164","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]}],"priority":{"score":2.9,"factors":[{"name":"EPSS percentile","points":2.88}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f8cce2ff3c04361b8843d8489620fda8880f668b, < dfe8224c9c7a43d356eb9f74b06868aa05f90223",">= f8cce2ff3c04361b8843d8489620fda8880f668b, < b3b4efa2e623aecaebd7c9b9e4171f5c659e9724",">= f8cce2ff3c04361b8843d8489620fda8880f668b, < 31028812724cef7bd57a51525ce58a32a6d73b22",">= f8cce2ff3c04361b8843d8489620fda8880f668b, < ed42ee1ed05ff2f4c36938379057413a40c56680",">= f8cce2ff3c04361b8843d8489620fda8880f668b, < 408c97c4a5e0b634dcd15bf8b8808b382e888164"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2025-19812","exploited":false,"provenance":"source"}}