CVE-2024-44958

Source
https://cve.org/CVERecord?id=CVE-2024-44958
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-44958.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-44958
Downstream
Related
Published
2024-09-04T18:35:56.655Z
Modified
2026-03-20T12:38:55.842190Z
Summary
sched/smt: Fix unbalance sched_smt_present dec/inc
Details

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

sched/smt: Fix unbalance schedsmtpresent dec/inc

I got the following warn report while doing stress test:

jump label: negative count! WARNING: CPU: 3 PID: 38 at kernel/jumplabel.c:263 statickeyslowtry_dec+0x9d/0xb0 Call Trace: <TASK> _statickeyslowdeccpuslocked+0x16/0x70 schedcpudeactivate+0x26e/0x2a0 cpuhpinvokecallback+0x3ad/0x10d0 cpuhpthreadfun+0x3f5/0x680 smpbootthreadfn+0x56d/0x8d0 kthread+0x309/0x400 retfromfork+0x41/0x70 retfromforkasm+0x1b/0x30 </TASK>

Because when cpusetcpuinactive() fails in schedcpudeactivate(), the cpu offline failed, but schedsmtpresent is decremented before calling schedcpudeactivate(), it leads to unbalanced dec/inc, so fix it by incrementing schedsmtpresent in the error path.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/44xxx/CVE-2024-44958.json",
    "cna_assigner": "Linux"
}
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
c5511d03ec090980732e929c318a7a6374b5550e
Fixed
2a3548c7ef2e135aee40e7e5e44e7d11b893e7c4
Fixed
2cf7665efe451e48d27953e6b5bc627d518c902b
Fixed
65727331b60197b742089855ac09464c22b96f66
Fixed
d0c87a3c6be10a57aa3463c32c3fc6b2a47c3dab
Fixed
e22f910a26cc2a3ac9c66b8e935ef2a7dd881117
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
01659361c63fdc91c0af239d08cdd211d590a656
Last affected
a2c094816f894b7a265851fad858e994fa0f78b3

Database specific

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