{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-52831","id":"CVE-2023-52831","title":"cpu/hotplug: Don't offline the last non-isolated CPU","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpu/hotplug: Don't offline the last non-isolated CPU\n\nIf a system has isolated CPUs via the \"isolcpus=\" command line parameter,\nthen an attempt to offline the last housekeeping CPU will result in a\nWARN_ON() when rebuilding the scheduler domains and a subsequent panic due\nto and unhandled empty CPU mas in partition_sched_domains_","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpu/hotplug: Don't offline the last non-isolated CPU\n\nIf a system has isolated CPUs via the \"isolcpus=\" command line parameter,\nthen an attempt to offline the last housekeeping CPU will result in a\nWARN_ON() when rebuilding the scheduler domains and a subsequent panic due\nto and unhandled empty CPU mas in partition_sched_domains_locked().\n\ncpuset_hotplug_workfn()\n  rebuild_sched_domains_locked()\n    ndoms = generate_sched_domains(&doms, &attr);\n      cpumask_and(doms[0], top_cpuset.effective_cpus, housekeeping_cpumask(HK_FLAG_DOMAIN));\n\nThus results in an empty CPU mask which triggers the warning and then the\nsubsequent crash:\n\nWARNING: CPU: 4 PID: 80 at kernel/sched/topology.c:2366 build_sched_domains+0x120c/0x1408\nCall trace:\n build_sched_domains+0x120c/0x1408\n partition_sched_domains_locked+0x234/0x880\n rebuild_sched_domains_locked+0x37c/0x798\n rebuild_sched_domains+0x30/0x58\n cpuset_hotplug_workfn+0x2a8/0x930\n\nUnable to handle kernel paging request at virtual address fffe80027ab37080\n partition_sched_domains_locked+0x318/0x880\n rebuild_sched_domains_locked+0x37c/0x798\n\nAside of the resulting crash, it does not make any sense to offline the last\nlast housekeeping CPU.\n\nPrevent this by masking out the non-housekeeping CPUs when selecting a\ntarget CPU for initiating the CPU unplug operation via the work queue.","published":"2024-05-21T15:31:33.566Z","updated":"2026-11-17T07:01:39.258228009Z","reserved":"2024-05-21T15:19:24.251Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fea9dd8653ff39ce383c54e747bde4c39289b4ad","lessThan":"3410b702354702b500bde10e3cc1f9db8731d908","status":"affected","versionType":"git"},{"version":"07f9e0c9987bf1c4ef57611ad2f789ba68978102","lessThan":"335a47ed71e332c82339d1aec0c7f6caccfcda13","status":"affected","versionType":"git"},{"version":"2b8272ff4a70b866106ae13c36be7ecbef5d5da2","lessThan":"3073f6df783d9d75f7f69f73e16c7ef85d6cfb63","status":"affected","versionType":"git"},{"version":"2b8272ff4a70b866106ae13c36be7ecbef5d5da2","lessThan":"38685e2a0476127db766f81b1c06019ddc4c9ffa","status":"affected","versionType":"git"},{"version":"9734e4c0c470258c32b6aa5ea7ef8a86506c0909","status":"affected","versionType":"git"},{"version":"6.1.53","lessThan":"6.1.64","status":"affected","versionType":"semver"},{"version":"6.5.3","lessThan":"6.5.13","status":"affected","versionType":"semver"},{"version":"6.4.16","lessThan":"6.5","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.1.64","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.5.13","lessThanOrEqual":"6.5.*","status":"unaffected","versionType":"semver"},{"version":"6.6.3","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-617"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3410b702354702b500bde10e3cc1f9db8731d908","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/335a47ed71e332c82339d1aec0c7f6caccfcda13","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/3073f6df783d9d75f7f69f73e16c7ef85d6cfb63","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/38685e2a0476127db766f81b1c06019ddc4c9ffa","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52831.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52831","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":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0024,"epssPercentile":0.15243,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-52831","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52831","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-52831","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-2023-52831","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}