CVE Database›Document archive›CVE-2025-37990

CVE-2025-37990

kernel: wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage()

Loading…

Severity

Moderate

Red Hat Product Security

4.1

CVSS 3.1

Review impact separately from score.

Published · May 20, 2025

Updated · June 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage()

The function brcmf_usb_dl_writeimage() calls the function brcmf_usb_dl_cmd() but dose not check its return value. The 'state.state' and the 'state.bytes' are uninitialized if the function brcmf_usb_dl_cmd() fails. It is dangerous to use uninitialized variables in the conditions.

Add error handling for brcmf_usb_dl_cmd() to jump to error handling path if the brcmf_usb_dl_cmd() fails and the 'state.state' and the 'state.bytes' are uninitialized.

Improve the error message to report more detailed error information.

Statement

The vulnerable code runs in the context of the kernel and can only be reached during device initialization, typically triggered by privileged operations such as module loading or USB device firmware upload. Only users with CAP_SYS_ADMIN or equivalent can invoke this code path, making the vulnerability inaccessible to unprivileged users.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4.1
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H

CWE not specified