wifi: mt76: Fix memory leak after mt76_connac_mcu_alloc_sta_req() (Linux Linux)

CVE-2026-53102
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.12 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: Fix memory leak after mt76_connac_mcu_alloc_sta_req() mt76_connac_mcu_alloc_sta_req() allocates an skb which is expected to be freed eventually by mt76_mcu_skb_send_msg(). However, currently if an intermediate function fails before sending, the allocated skb is leaked. Specifically, mt76_connac_mcu_sta_wed_update() and mt76_connac_mcu_sta_key_tlv() may fail, leading to an immediate memory leak in the error path. Fix this by explicitly freeing the skb in these error paths. Commit 7c0f63fe37a5 ("wifi: mt76: mt7996: fix memory leak on mt7996_mcu_sta_key_tlv error") made a similar change. Compile tested only. Issue found using a prototype static analysis tool and code review.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 6683d988089ce0e80bd859a9493333b6b272420e < 25af8229133c8dc69b12721ad84165cced83caed ; affected 6683d988089ce0e80bd859a9493333b6b272420e < a2af91af9536922edc3f63de90c3f1fe9db71717 ; affected 6683d988089ce0e80bd859a9493333b6b272420e < 7de35b99503012e57bec027e98ed53f881518b5b ; affected 6683d988089ce0e80bd859a9493333b6b272420e < 8527ac1bce87aaabde6755e8e6eb2a9f439d1292 ; affected 6683d988089ce0e80bd859a9493333b6b272420e < eb466406d2094deefadc2cd6ddb4f6eeb086d1b4 ; affected 6683d988089ce0e80bd859a9493333b6b272420e < c41075ce8cf05ed8c0e7b7efef000dce548ffc42
Linux · Linuxaffected 5.18 ; unaffected 0 < 5.18 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.109 ≤ 6.12.* ; unaffected 6.18.50 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD