CVE-2022-50091

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50091
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50091.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50091
Downstream
Related
Published
2025-06-18T11:15:38Z
Modified
2025-08-09T20:01:26Z
Summary
[none]
Details

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

locking/csdlock: Change csdlockdebug from earlyparam to _setup

The csdlockdebug kernel-boot parameter is parsed by the earlyparam() function csdlockdebug(). If set, csdlockdebug() invokes staticbranchenable() to enable csdlockwait feature, which triggers a panic on arm64 for kernels built with CONFIGSPARSEMEM=y and CONFIGSPARSEMEM_VMEMMAP=n.

With CONFIGSPARSEMEMVMEMMAP=n, _nrtosection is called in statickeyenable() and returns NULL, resulting in a NULL dereference because memsection is initialized only later in sparse_init().

This is also a problem for powerpc because earlyparam() functions are invoked earlier than jumplabelinit(), also resulting in statickeyenable() failures. These failures cause the warning "static key 'xxx' used before call to jumplabel_init()".

Thus, earlyparam is too early for csdlockwait to run staticbranchenable(), so changes it to _setup to fix these.

References

Affected packages