CVE-2024-26841

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26841
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26841.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26841
Downstream
Published
2024-04-17T10:10:06Z
Modified
2025-10-15T09:10:53.132716Z
Summary
LoongArch: Update cpu_sibling_map when disabling nonboot CPUs
Details

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

LoongArch: Update cpusiblingmap when disabling nonboot CPUs

Update cpusiblingmap when disabling nonboot CPUs by defining & calling clearcpusibling_map(), otherwise we get such errors on SMT systems:

jump label: negative count! WARNING: CPU: 6 PID: 45 at kernel/jumplabel.c:263 _statickeyslowdeccpuslocked+0xec/0x100 CPU: 6 PID: 45 Comm: cpuhp/6 Not tainted 6.8.0-rc5+ #1340 pc 90000000004c302c ra 90000000004c302c tp 90000001005bc000 sp 90000001005bfd20 a0 000000000000001b a1 900000000224c278 a2 90000001005bfb58 a3 900000000224c280 a4 900000000224c278 a5 90000001005bfb50 a6 0000000000000001 a7 0000000000000001 t0 ce87a4763eb5234a t1 ce87a4763eb5234a t2 0000000000000000 t3 0000000000000000 t4 0000000000000006 t5 0000000000000000 t6 0000000000000064 t7 0000000000001964 t8 000000000009ebf6 u0 9000000001f2a068 s9 0000000000000000 s0 900000000246a2d8 s1 ffffffffffffffff s2 ffffffffffffffff s3 90000000021518c0 s4 0000000000000040 s5 9000000002151058 s6 9000000009828e40 s7 00000000000000b4 s8 0000000000000006 ra: 90000000004c302c _statickeyslowdeccpuslocked+0xec/0x100 ERA: 90000000004c302c _statickeyslowdeccpuslocked+0xec/0x100 CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE) PRMD: 00000004 (PPLV0 +PIE -PWE) EUEN: 00000000 (-FPE -SXE -ASXE -BTE) ECFG: 00071c1c (LIE=2-4,10-12 VS=7) ESTAT: 000c0000 [BRK] (IS= ECode=12 EsubCode=0) PRID: 0014d000 (Loongson-64bit, Loongson-3A6000-HV) CPU: 6 PID: 45 Comm: cpuhp/6 Not tainted 6.8.0-rc5+ #1340 Stack : 0000000000000000 900000000203f258 900000000179afc8 90000001005bc000 90000001005bf980 0000000000000000 90000001005bf988 9000000001fe0be0 900000000224c280 900000000224c278 90000001005bf8c0 0000000000000001 0000000000000001 ce87a4763eb5234a 0000000007f38000 90000001003f8cc0 0000000000000000 0000000000000006 0000000000000000 4c206e6f73676e6f 6f4c203a656d616e 000000000009ec99 0000000007f38000 0000000000000000 900000000214b000 9000000001fe0be0 0000000000000004 0000000000000000 0000000000000107 0000000000000009 ffffffffffafdabe 00000000000000b4 0000000000000006 90000000004c302c 9000000000224528 00005555939a0c7c 00000000000000b0 0000000000000004 0000000000000000 0000000000071c1c ... Call Trace: [<9000000000224528>] showstack+0x48/0x1a0 [<900000000179afc8>] dumpstacklvl+0x78/0xa0 [<9000000000263ed0>] _warn+0x90/0x1a0 [<90000000017419b8>] reportbug+0x1b8/0x280 [<900000000179c564>] dobp+0x264/0x420 [<90000000004c302c>] _statickeyslowdeccpuslocked+0xec/0x100 [<90000000002b4d7c>] schedcpudeactivate+0x2fc/0x300 [<9000000000266498>] cpuhpinvokecallback+0x178/0x8a0 [<9000000000267f70>] cpuhpthreadfun+0xf0/0x240 [<90000000002a117c>] smpbootthreadfn+0x1dc/0x2e0 [<900000000029a720>] kthread+0x140/0x160 [<9000000000222288>] retfromkernelthread+0xc/0xa4

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
fa96b57c149061f71a70bd6582d995f6424fbbf4
Fixed
b1ec3d6b86fdd057559a5908e6668279bf770e0e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fa96b57c149061f71a70bd6582d995f6424fbbf4
Fixed
0d862db64d26c2905ba1a6a8561466b215b664c2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fa96b57c149061f71a70bd6582d995f6424fbbf4
Fixed
752cd08da320a667a833803a8fd6bb266114cce5

Affected versions

v5.*

v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.2
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.1
v6.6.10
v6.6.11
v6.6.12
v6.6.13
v6.6.14
v6.6.15
v6.6.16
v6.6.17
v6.6.18
v6.6.2
v6.6.3
v6.6.4
v6.6.5
v6.6.6
v6.6.7
v6.6.8
v6.6.9
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.7.1
v6.7.2
v6.7.3
v6.7.4
v6.7.5
v6.7.6
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5

Database specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 318.0,
                "function_hash": "164831772041772824959867801721345575814"
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d862db64d26c2905ba1a6a8561466b215b664c2",
            "signature_type": "Function",
            "target": {
                "function": "loongson_cpu_disable",
                "file": "arch/loongarch/kernel/smp.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-26841-0ab817a7"
        },
        {
            "digest": {
                "line_hashes": [
                    "313892634978501905851780505145829298448",
                    "160602966767340038581253511809493681550",
                    "276599660789608254585994233650239901960",
                    "190211719485580437573247765598920204203",
                    "139710245133748799464973281041838844546",
                    "120039239260863305385249918001843361666",
                    "293871744864459568380351261632474707529",
                    "228715269037629543095528891809221903474",
                    "174137622944108118687956052725875426477",
                    "289897113225935481192187149389849298541",
                    "62217980711164801140028369089268796035",
                    "332724719747195233641961363177699417047",
                    "331097417176986325216783922181138647405",
                    "327431384206553986173517772625771212102",
                    "164804592500940372811974481310010058361",
                    "31334069605599797659610450993798678223",
                    "257649227471296131518740722984455231026",
                    "185636535173782054629785426105813802747",
                    "300307346283112424103563981522047532370",
                    "164203283211050659859608603241347551924",
                    "173729725811426607147768866845288816577",
                    "257026381292122849825313458343248889657",
                    "31907449731085170005466200335946839390",
                    "160269680720386580486625680605003622830",
                    "140308277663027429778660611304442054211",
                    "223807529384794574256231446664158953430",
                    "173500225215072543275927609009726475582",
                    "6900982254470496978221707948407930208",
                    "191189840578038415519915935134921724649",
                    "74377523155688472330727597000932579761",
                    "316442886144125669628930118202202600176",
                    "314609155841217908856513960885088902461",
                    "100446719750691181688058865630019512908",
                    "471215152000470035665044116166928353",
                    "268936451365810092059785504695874544370",
                    "115395099279863530211639993889860282622",
                    "6033763863177375139362863275938827570",
                    "285006805884414454612953887547424244743",
                    "39981955225343983241503123120194305845",
                    "217612387143692278573579495093952888272",
                    "41178431601637144659005044738885315928",
                    "44486892932056310255811154699090450759",
                    "282675044451695091310636451304153684795",
                    "171474301170139538757822938729130763625",
                    "43592554596913360028531328845272603254",
                    "299304490373821075929816298093611163874",
                    "233801953818773866870580427319605530393",
                    "220002219550950985359275477771796617344",
                    "22855227212744131250494069403916623197"
                ],
                "threshold": 0.9
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d862db64d26c2905ba1a6a8561466b215b664c2",
            "signature_type": "Line",
            "target": {
                "file": "arch/loongarch/kernel/smp.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-26841-8da684de"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
6.6.19
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.7