CVE-2022-49147
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49147 is a vulnerability discovered in the Linux kernel's block subsystem. The issue relates to the handling of minor values in the blkallocext_minor() function. The vulnerability was disclosed and resolved in early 2022, affecting the Linux kernel's block device management system (Kernel Git).

Technical details

The vulnerability stems from an implementation flaw in the blkallocextminor() function where idaallocrange(..., min, max, ...) returns values from min to max inclusive. The issue occurs because NREXTDEVT is a valid idx returned by blkallocextminor(), and when this value is used in deviceadddisk() with the expression ddev->devt = MKDEV(disk->major, disk->firstminor), it could cause an overflow since NREXT_DEVT is defined as (1 << MINORBITS) (Kernel Git).

Impact

If exploited, this vulnerability could lead to an overflow condition when handling block device minor numbers in the Linux kernel. This could potentially affect system stability and block device management (NVD).

Mitigation and workarounds

The issue has been fixed by modifying the maximum value in idaallocrange to NREXTDEVT - 1, preventing the potential overflow condition. The fix was implemented through a patch in the Linux kernel (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management