CVE-2022-49740
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49740 is a vulnerability discovered in the Linux kernel's brcmfmac WiFi driver. The vulnerability was disclosed on March 27, 2025, and affects the channel specification handling in the Linux kernel. The issue specifically impacts the brcmfconstructchaninfo() and brcmfenablebw40_2g() functions in the brcmfmac driver (NVD).

Technical details

The vulnerability is a slab-out-of-bounds read that occurs when the count value of channel specifications provided by the device is greater than the length of 'list->element[]', which is determined by the size of the 'list' allocated with kzalloc(). This can lead to buffer overflow conditions in both brcmfconstructchaninfo() and brcmfenablebw40_2g() functions. The issue was discovered using a modified version of syzkaller (NVD).

Impact

The vulnerability can result in slab-out-of-bounds reads in the kernel's WiFi subsystem, potentially leading to information disclosure or system crashes. The issue affects the kernel's ability to properly handle channel specifications in the brcmfmac driver (NVD).

Mitigation and workarounds

The patch adds checks that make the functions free the buffer and return -EINVAL if the count value exceeds the buffer size. The negative return is properly handled by the caller functions brcmfsetupwiphybands() or brcmfcfg80211attach() (NVD).

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