---
id: CVE-2025-37990
title: 'wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage()'
summary: |-
  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…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    972bf75e53f778c78039c5d139dd47443a6d66a1
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    62a4f2955d9a1745bdb410bf83fb16666d8865d6
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    508be7c001437bacad7b9a43f08a723887bcd1ea
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    524b70441baba453b193c418e3142bd31059cc1f
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    08424a0922fb9e32a19b09d852ee87fb6c497538
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    bdb435ef9815b1ae28eefffa01c6959d0fcf1fa7
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    fa9b9f02212574ee1867fbefb0a675362a71b31d
  - >-
    Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 <
    8e089e7b585d95122c8122d732d1d5ef8f879396
  - Linux 3.4
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:47:34.894446Z'
published: '2025-05-20'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:52:11.197Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-37990'
references:
  - url: 'https://git.kernel.org/stable/c/972bf75e53f778c78039c5d139dd47443a6d66a1'
  - url: 'https://git.kernel.org/stable/c/62a4f2955d9a1745bdb410bf83fb16666d8865d6'
  - url: 'https://git.kernel.org/stable/c/508be7c001437bacad7b9a43f08a723887bcd1ea'
  - url: 'https://git.kernel.org/stable/c/524b70441baba453b193c418e3142bd31059cc1f'
  - url: 'https://git.kernel.org/stable/c/08424a0922fb9e32a19b09d852ee87fb6c497538'
  - url: 'https://git.kernel.org/stable/c/bdb435ef9815b1ae28eefffa01c6959d0fcf1fa7'
  - url: 'https://git.kernel.org/stable/c/fa9b9f02212574ee1867fbefb0a675362a71b31d'
  - url: 'https://git.kernel.org/stable/c/8e089e7b585d95122c8122d732d1d5ef8f879396'
tags:
  - cve.org
epss: 0.00237
epssPercentile: 0.14805
ingestedAt: '2026-11-05T22:38:31.904Z'
---

## Overview

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.

## Affected

- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < 972bf75e53f778c78039c5d139dd47443a6d66a1`
- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < 62a4f2955d9a1745bdb410bf83fb16666d8865d6`
- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < 508be7c001437bacad7b9a43f08a723887bcd1ea`
- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < 524b70441baba453b193c418e3142bd31059cc1f`
- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < 08424a0922fb9e32a19b09d852ee87fb6c497538`
- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < bdb435ef9815b1ae28eefffa01c6959d0fcf1fa7`
- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < fa9b9f02212574ee1867fbefb0a675362a71b31d`
- `Linux >= 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 < 8e089e7b585d95122c8122d732d1d5ef8f879396`
- `Linux 3.4`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
