{"id":"CVE-2025-38049","summary":"x86/resctrl: Fix allocation of cleanest CLOSID on platforms with no monitors","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/resctrl: Fix allocation of cleanest CLOSID on platforms with no monitors\n\nCommit\n\n  6eac36bb9eb0 (\"x86/resctrl: Allocate the cleanest CLOSID by searching closid_num_dirty_rmid\")\n\nadded logic that causes resctrl to search for the CLOSID with the fewest dirty\ncache lines when creating a new control group, if requested by the arch code.\nThis depends on the values read from the llc_occupancy counters. The logic is\napplicable to architectures where the CLOSID effectively forms part of the\nmonitoring identifier and so do not allow complete freedom to choose an unused\nmonitoring identifier for a given CLOSID.\n\nThis support missed that some platforms may not have these counters.  This\ncauses a NULL pointer dereference when creating a new control group as the\narray was not allocated by dom_data_init().\n\nAs this feature isn't necessary on platforms that don't have cache occupancy\nmonitors, add this to the check that occurs when a new control group is\nallocated.","modified":"2026-03-20T12:42:39.208957Z","published":"2025-04-18T07:01:30.421Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38049.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/93a418fc61da13d1ee4047d4d1327990f7a2816a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a121798ae669351ec0697c94f71c3a692b2a755b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8a1bcc27d4607227088d80483164289b5348293"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed5addb55e403ad6598102bcf546e068ae01fef6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38049.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38049"},{"type":"PACKAGE","url":"https://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":"6eac36bb9eb0349c983313c71692c19d50b56878"},{"fixed":"a8a1bcc27d4607227088d80483164289b5348293"},{"fixed":"ed5addb55e403ad6598102bcf546e068ae01fef6"},{"fixed":"93a418fc61da13d1ee4047d4d1327990f7a2816a"},{"fixed":"a121798ae669351ec0697c94f71c3a692b2a755b"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38049.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}