Linux Kernel up to 6.12.1 cpuinfo cpu_max_bits_warn stack-based overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.6$0-$5k0.00

Summaryinfo

A vulnerability classified as critical has been found in Linux Kernel up to 6.12.1. This affects the function cpu_max_bits_warn of the component cpuinfo. Performing a manipulation results in stack-based overflow. This vulnerability is reported as CVE-2022-49034. No exploit exists. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability, which was classified as critical, was found in Linux Kernel up to 6.12.1. This affects the function cpu_max_bits_warn of the component cpuinfo. The manipulation with an unknown input leads to a stack-based overflow vulnerability. CWE is classifying the issue as CWE-121. A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

In the Linux kernel, the following vulnerability has been resolved: sh: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK When CONFIG_CPUMASK_OFFSTACK and CONFIG_DEBUG_PER_CPU_MAPS are selected, cpu_max_bits_warn() generates a runtime warning similar as below when showing /proc/cpuinfo. Fix this by using nr_cpu_ids (the runtime limit) instead of NR_CPUS to iterate CPUs. [ 3.052463] ------------[ cut here ]------------ [ 3.059679] WARNING: CPU: 3 PID: 1 at include/linux/cpumask.h:108 show_cpuinfo+0x5e8/0x5f0 [ 3.070072] Modules linked in: efivarfs autofs4 [ 3.076257] CPU: 0 PID: 1 Comm: systemd Not tainted 5.19-rc5+ #1052 [ 3.099465] Stack : 9000000100157b08 9000000000f18530 9000000000cf846c 9000000100154000 [ 3.109127] 9000000100157a50 0000000000000000 9000000100157a58 9000000000ef7430 [ 3.118774] 90000001001578e8 0000000000000040 0000000000000020 ffffffffffffffff [ 3.128412] 0000000000aaaaaa 1ab25f00eec96a37 900000010021de80 900000000101c890 [ 3.138056] 0000000000000000 0000000000000000 0000000000000000 0000000000aaaaaa [ 3.147711] ffff8000339dc220 0000000000000001 0000000006ab4000 0000000000000000 [ 3.157364] 900000000101c998 0000000000000004 9000000000ef7430 0000000000000000 [ 3.167012] 0000000000000009 000000000000006c 0000000000000000 0000000000000000 [ 3.176641] 9000000000d3de08 9000000001639390 90000000002086d8 00007ffff0080286 [ 3.186260] 00000000000000b0 0000000000000004 0000000000000000 0000000000071c1c [ 3.195868] ... [ 3.199917] Call Trace: [ 3.203941] [] show_stack+0x38/0x14c [ 3.210666] [] dump_stack_lvl+0x60/0x88 [ 3.217625] [] __warn+0xd0/0x100 [ 3.223958] [] warn_slowpath_fmt+0x7c/0xcc [ 3.231150] [] show_cpuinfo+0x5e8/0x5f0 [ 3.238080] [] seq_read_iter+0x354/0x4b4 [ 3.245098] [] new_sync_read+0x17c/0x1c4 [ 3.252114] [] vfs_read+0x138/0x1d0 [ 3.258694] [] ksys_read+0x70/0x100 [ 3.265265] [] do_syscall+0x7c/0x94 [ 3.271820] [] handle_syscall+0xc4/0x160 [ 3.281824] ---[ end trace 8b484262b4b8c24c ]---

It is possible to read the advisory at git.kernel.org. This vulnerability is uniquely identified as CVE-2022-49034 since 08/22/2024. The exploitability is told to be easy. Technical details of the vulnerability are known, but there is no available exploit. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 10/08/2025).

The vulnerability scanner Nessus provides a plugin with the ID 216493 (Ubuntu 24.10 : Linux kernel vulnerabilities (USN-7276-1)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 4.19.325, 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.64, 6.11.11 or 6.12.2 eliminates this vulnerability. Applying the patch 8fbb57eabfc8ae67115cb47f904614c99d626a89/f8f26cf69003a37ffa947631fc0e6fe6daee624a/77755dc95ff2f9a3e473acc1e039f498629949ea/e2b91997db286a5dd3cca6d5d9c20004851f22eb/2b6b8e011fab680a223b5e07a3c64774156ec6fe/09faf32c682ea4a547200b8b9e04d8b3c8e84b55/39373f6f89f52770a5405d30dddd08a27d097872/701e32900683378d93693fec15d133e2c5f7ada2/3c891f7c6a4e90bb1199497552f24b26e46383bc is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the vulnerability database at Tenable (216493). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.8
VulDB Meta Temp Score: 6.6

VulDB Base Score: 8.0
VulDB Temp Score: 7.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Stack-based overflow
CWE: CWE-121 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 216493
Nessus Name: Ubuntu 24.10 : Linux kernel vulnerabilities (USN-7276-1)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 4.19.325/5.4.287/5.10.231/5.15.174/6.1.120/6.6.64/6.11.11/6.12.2
Patch: 8fbb57eabfc8ae67115cb47f904614c99d626a89/f8f26cf69003a37ffa947631fc0e6fe6daee624a/77755dc95ff2f9a3e473acc1e039f498629949ea/e2b91997db286a5dd3cca6d5d9c20004851f22eb/2b6b8e011fab680a223b5e07a3c64774156ec6fe/09faf32c682ea4a547200b8b9e04d8b3c8e84b55/39373f6f89f52770a5405d30dddd08a27d097872/701e32900683378d93693fec15d133e2c5f7ada2/3c891f7c6a4e90bb1199497552f24b26e46383bc

Timelineinfo

08/22/2024 🔍
12/27/2024 +127 days 🔍
12/27/2024 +0 days 🔍
10/08/2025 +285 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2022-49034 (🔍)
GCVE (CVE): GCVE-0-2022-49034
GCVE (VulDB): GCVE-100-289407

Entryinfo

Created: 12/27/2024 15:04
Updated: 10/08/2025 21:50
Changes: 12/27/2024 15:04 (59), 02/20/2025 04:21 (2), 10/08/2025 21:50 (12)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!