{"id":"CVE-2022-50091","state":"PUBLISHED","title":"locking/csd_lock: Change csdlock_debug from early_param to __setup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nlocking/csd_lock: Change csdlock_debug from early_param to __setup\n\nThe csdlock_debug kernel-boot parameter is parsed by the\nearly_param() function csdlock_debug().  If set, csdlock_debug()\ninvokes static_branch_enable() to enable csd_lock_wait feature, which\ntriggers a panic on arm64 for kernels built with CONFIG_SPARSEMEM=y and\nCONFIG_SPARSEMEM_VMEMMAP=n.\n\nWith CONFIG_SPARSEMEM_VMEMMAP=n, __nr_to_section is called in\nstatic_key_enable() and returns NULL, resulting in a NULL dereference\nbecause mem_section is initialized only later in sparse_init().\n\nThis is also a problem for powerpc because early_param() functions\nare invoked earlier than jump_label_init(), also resulting in\nstatic_key_enable() failures.  These failures cause the warning \"static\nkey 'xxx' used before call to jump_label_init()\".\n\nThus, early_param is too early for csd_lock_wait to run\nstatic_branch_enable(), so changes it to __setup to fix these.","publishedAt":"2025-06-18T11:02:30.729Z","updatedAt":"2026-05-11T19:12:39.439Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"d2cbdbe22b5f190055d2d0ae92e7454479343a30","versionType":"git"},{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"05de9e2e33b1625c71aee69e353fe906dd2be88a","versionType":"git"},{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"b480d1e9a8c11ecc1c99dc01814b28e3103bd0a0","versionType":"git"},{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"9c9b26b0df270d4f9246e483a44686fca951a29c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/smp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.61","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/smp.c"]}],"references":["https://git.kernel.org/stable/c/d2cbdbe22b5f190055d2d0ae92e7454479343a30","https://git.kernel.org/stable/c/05de9e2e33b1625c71aee69e353fe906dd2be88a","https://git.kernel.org/stable/c/b480d1e9a8c11ecc1c99dc01814b28e3103bd0a0","https://git.kernel.org/stable/c/9c9b26b0df270d4f9246e483a44686fca951a29c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50091.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50091","state":"PUBLISHED","datePublished":"2025-06-18T11:02:30.729Z","dateUpdated":"2026-05-11T19:12:39.439Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.411Z"},"containers":{"cna":{"title":"locking/csd_lock: Change csdlock_debug from early_param to __setup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nlocking/csd_lock: Change csdlock_debug from early_param to __setup\n\nThe csdlock_debug kernel-boot parameter is parsed by the\nearly_param() function csdlock_debug().  If set, csdlock_debug()\ninvokes static_branch_enable() to enable csd_lock_wait feature, which\ntriggers a panic on arm64 for kernels built with CONFIG_SPARSEMEM=y and\nCONFIG_SPARSEMEM_VMEMMAP=n.\n\nWith CONFIG_SPARSEMEM_VMEMMAP=n, __nr_to_section is called in\nstatic_key_enable() and returns NULL, resulting in a NULL dereference\nbecause mem_section is initialized only later in sparse_init().\n\nThis is also a problem for powerpc because early_param() functions\nare invoked earlier than jump_label_init(), also resulting in\nstatic_key_enable() failures.  These failures cause the warning \"static\nkey 'xxx' used before call to jump_label_init()\".\n\nThus, early_param is too early for csd_lock_wait to run\nstatic_branch_enable(), so changes it to __setup to fix these."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"d2cbdbe22b5f190055d2d0ae92e7454479343a30","versionType":"git"},{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"05de9e2e33b1625c71aee69e353fe906dd2be88a","versionType":"git"},{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"b480d1e9a8c11ecc1c99dc01814b28e3103bd0a0","versionType":"git"},{"version":"8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5","status":"affected","lessThan":"9c9b26b0df270d4f9246e483a44686fca951a29c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/smp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.61","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/smp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d2cbdbe22b5f190055d2d0ae92e7454479343a30"},{"url":"https://git.kernel.org/stable/c/05de9e2e33b1625c71aee69e353fe906dd2be88a"},{"url":"https://git.kernel.org/stable/c/b480d1e9a8c11ecc1c99dc01814b28e3103bd0a0"},{"url":"https://git.kernel.org/stable/c/9c9b26b0df270d4f9246e483a44686fca951a29c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:12:39.439Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.18.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.19.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}