Linux Kernel up to 6.0.8 on CAP_TO_MASK security/commoncap.c out-of-bounds

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.
4.8$0-$5k0.00

Summaryinfo

A vulnerability was found in Linux Kernel up to 6.0.8 on CAP_TO_MASK. It has been declared as problematic. Impacted is an unknown function of the file security/commoncap.c. The manipulation results in out-of-bounds. This vulnerability is identified as CVE-2022-49870. There is not any exploit available. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability classified as problematic has been found in Linux Kernel up to 6.0.8 on CAP_TO_MASK. Affected is some unknown processing of the file security/commoncap.c. The manipulation with an unknown input leads to a out-of-bounds vulnerability. CWE is classifying the issue as CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. This is going to have an impact on confidentiality. CVE summarizes:

In the Linux kernel, the following vulnerability has been resolved: capabilities: fix undefined behavior in bit shift for CAP_TO_MASK Shifting signed 32-bit value by 31 bits is undefined, so changing significant bit to unsigned. The UBSAN warning calltrace like below: UBSAN: shift-out-of-bounds in security/commoncap.c:1252:2 left shift of 1 by 31 places cannot be represented in type 'int' Call Trace: <TASK> dump_stack_lvl+0x7d/0xa5 dump_stack+0x15/0x1b ubsan_epilogue+0xe/0x4e __ubsan_handle_shift_out_of_bounds+0x1e7/0x20c cap_task_prctl+0x561/0x6f0 security_task_prctl+0x5a/0xb0 __x64_sys_prctl+0x61/0x8f0 do_syscall_64+0x58/0x80 entry_SYSCALL_64_after_hwframe+0x63/0xcd </TASK>

The advisory is available at git.kernel.org. This vulnerability is traded as CVE-2022-49870 since 05/01/2025. The exploitability is told to be difficult. Technical details are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 241826 (EulerOS 2.0 SP10 : kernel (EulerOS-SA-2025-1800)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 4.9.334, 4.14.300, 4.19.267, 5.4.225, 5.10.155, 5.15.79 or 6.0.9 eliminates this vulnerability. Applying the patch 5b79fa628e2ab789e629a83cd211ef9b4c1a593e/65b0bc7a0690861812ade523d19f82688ab819dc/dbaab08c8677d598244d21afb7818e44e1c5d826/5661f111a1616ac105ec8cec81bff99b60f847ac/fcbd2b336834bd24e1d9454ad5737856470c10d7/151dc8087b5609e53b069c068e3f3ee100efa586/27bdb134c043ff32c459d98f16550d0ffa0b3c34/46653972e3ea64f79e7f8ae3aa41a4d3fdb70a13 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 (241826). If you want to get best quality of vulnerability data, you may have to visit VulDB.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.8
VulDB Meta Temp Score: 4.8

VulDB Base Score: 2.6
VulDB Temp Score: 2.5
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.1
NVD Vector: 🔍

CVSSv2info

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

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

Exploitinginfo

Class: Out-of-bounds
CWE: CWE-125 / 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: 241826
Nessus Name: EulerOS 2.0 SP10 : kernel (EulerOS-SA-2025-1800)

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 4.9.334/4.14.300/4.19.267/5.4.225/5.10.155/5.15.79/6.0.9
Patch: 5b79fa628e2ab789e629a83cd211ef9b4c1a593e/65b0bc7a0690861812ade523d19f82688ab819dc/dbaab08c8677d598244d21afb7818e44e1c5d826/5661f111a1616ac105ec8cec81bff99b60f847ac/fcbd2b336834bd24e1d9454ad5737856470c10d7/151dc8087b5609e53b069c068e3f3ee100efa586/27bdb134c043ff32c459d98f16550d0ffa0b3c34/46653972e3ea64f79e7f8ae3aa41a4d3fdb70a13

Timelineinfo

05/01/2025 🔍
05/01/2025 +0 days 🔍
05/01/2025 +0 days 🔍
11/11/2025 +193 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2022-49870 (🔍)
GCVE (CVE): GCVE-0-2022-49870
GCVE (VulDB): GCVE-100-307026

Entryinfo

Created: 05/01/2025 17:43
Updated: 11/11/2025 00:04
Changes: 05/01/2025 17:43 (59), 07/11/2025 08:12 (2), 11/11/2025 00:04 (13)
Complete: 🔍
Cache ID: 216::103

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!