CVE-2022-50296
BaseFortify
Publication date: 2025-09-15
Last updated on: 2025-12-04
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | to 4.9.331 (exc) |
| linux | linux_kernel | From 4.10 (inc) to 4.14.296 (exc) |
| linux | linux_kernel | From 4.15 (inc) to 4.19.262 (exc) |
| linux | linux_kernel | From 4.20 (inc) to 5.4.220 (exc) |
| linux | linux_kernel | From 5.5 (inc) to 5.10.150 (exc) |
| linux | linux_kernel | From 5.11 (inc) to 5.15.75 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 5.19.17 (exc) |
| linux | linux_kernel | From 6.0 (inc) to 6.0.3 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-NVD-CWE-noinfo |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a runtime warning in the Linux kernel related to the way CPU information is shown in /proc/cpuinfo when certain kernel configuration options (CONFIG_CPUMASK_OFFSTACK and CONFIG_DEBUG_PER_CPU_MAPS) are enabled. The issue occurs because the kernel code uses a fixed constant (NR_CPUS) instead of the runtime limit (nr_cpu_ids) to iterate over CPUs, which causes a warning to be generated. The fix involves changing the code to use the runtime limit to avoid this warning.
How can this vulnerability impact me? :
This vulnerability causes a runtime warning in the kernel logs when viewing CPU information, which may lead to confusion or concern about kernel stability or correctness. However, it does not indicate a security breach or direct impact on system functionality or security.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by checking for runtime warnings related to CONFIG_CPUMASK_OFFSTACK and CONFIG_DEBUG_PER_CPU_MAPS in the kernel logs, specifically warnings generated by cpu_max_bits_warn() when showing /proc/cpuinfo. You can use the command 'dmesg | grep WARNING' or 'journalctl -k | grep WARNING' to look for such warnings in the system logs.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves updating the Linux kernel to a version where this issue is fixed, which uses nr_cpu_ids instead of NR_CPUS to iterate CPUs and prevents the runtime warning. Until then, monitoring for the warning and avoiding configurations that enable both CONFIG_CPUMASK_OFFSTACK and CONFIG_DEBUG_PER_CPU_MAPS simultaneously may reduce exposure.