Linux Kernel up to 5.17.0 hw_params/hw_free buffer 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.
5.3$0-$5k0.00

Summaryinfo

A vulnerability labeled as critical has been found in Linux Kernel up to 5.17.0. This affects the function hw_params/hw_free. Executing a manipulation can lead to buffer overflow. This vulnerability is registered as CVE-2022-49291. No exploit is available. The affected component should be upgraded.

Detailsinfo

A vulnerability has been found in Linux Kernel up to 5.17.0 and classified as critical. This vulnerability affects the function hw_params/hw_free. The manipulation with an unknown input leads to a buffer overflow vulnerability. The CWE definition for the vulnerability is CWE-120. The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:

In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Fix races among concurrent hw_params and hw_free calls Currently we have neither proper check nor protection against the concurrent calls of PCM hw_params and hw_free ioctls, which may result in a UAF. Since the existing PCM stream lock can't be used for protecting the whole ioctl operations, we need a new mutex to protect those racy calls. This patch introduced a new mutex, runtime->buffer_mutex, and applies it to both hw_params and hw_free ioctl code paths. Along with it, the both functions are slightly modified (the mmap_count check is moved into the state-check block) for code simplicity.

The advisory is shared for download at git.kernel.org. This vulnerability was named CVE-2022-49291 since 02/26/2025. The exploitation appears to be easy. There are known technical details, but no exploit is available. The current price for an exploit might be approx. USD $0-$5k (estimation calculated on 02/26/2025).

Upgrading to version 4.14.279, 4.19.243, 5.4.193, 5.10.109, 5.15.32, 5.16.18 or 5.17.1 eliminates this vulnerability. Applying the patch a42aa926843acca96c0dfbde2e835b8137f2f092/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9/fbeb492694ce0441053de57699e1e2b7bc148a69/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8/33061d0fba51d2bf70a2ef9645f703c33fe8e438/0090c13cbbdffd7da079ac56f80373a9a1be0bf8/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b/92ee3c60ec9fe64404dc035e7c41277d74aa26cb 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.

Once again VulDB remains the best 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: 5.5
VulDB Meta Temp Score: 5.3

VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

Exploitinginfo

Class: Buffer overflow
CWE: CWE-120 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 4.14.279/4.19.243/5.4.193/5.10.109/5.15.32/5.16.18/5.17.1
Patch: a42aa926843acca96c0dfbde2e835b8137f2f092/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9/fbeb492694ce0441053de57699e1e2b7bc148a69/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8/33061d0fba51d2bf70a2ef9645f703c33fe8e438/0090c13cbbdffd7da079ac56f80373a9a1be0bf8/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b/92ee3c60ec9fe64404dc035e7c41277d74aa26cb

Timelineinfo

02/26/2025 🔍
02/26/2025 +0 days 🔍
02/26/2025 +0 days 🔍
02/26/2025 +0 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2022-49291 (🔍)
GCVE (CVE): GCVE-0-2022-49291
GCVE (VulDB): GCVE-100-297580

Entryinfo

Created: 02/26/2025 13:08
Changes: 02/26/2025 13:08 (58)
Complete: 🔍
Committer: sany
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!