staging: rtl8723bs: fix xmit_frame/xmit_buf leaks on mgnt-frame error paths
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix xmit_frame/xmit_buf leaks on mgnt-frame error paths issue_beacon(), issue_probersp() and issue_asocrsp() obtain a management xmit_frame together with its xmit_buf from the driver's fixed-size management-TX pools via alloc_mgtxmitframe(). On the normal path the frame is handed to dump_mgntframe(), which transfers ownership and eventually returns both objects to their pools (the frame and, for beacons, the buf in rtl8723bs_mgnt_xmit(); other bufs via the pending-xmitbuf/TX-completion path). Several error/edge paths return early after a successful alloc_mgtxmitframe() but before dump_mgntframe(), so ownership is never transferred and neither object is freed: - issue_beacon(): beacon larger than 512 bytes - issue_probersp(): cur_network->ie_length > MAX_IE_SZ - issue_probersp(): kzalloc() of the SSID scratch buffer fails - issue_asocrsp(): pkt_type is neither ASSOCRSP nor REASSOCRSP Because alloc_mgtxmitframe() removes the frame and buf from their free lists (list_del_init) without placing them on any pending list, an orphaned pair is on no list and referenced by nobody, so it is only reclaimed at driver teardown. Repeated hits progressively exhaust the management-TX pools until alloc_mgtxmitframe() returns NULL and the interface can no longer send beacons or probe/assoc responses. Free the frame and buffer on these paths, matching the existing correct error handling in issue_assocreq().
CVE-2026-100076
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-100076
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
"lessThan": "17260b5215d4ced17a733e2c027a76290e476fad",
"versionType": "git"
},
{
"status": "affected",
"version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
"lessThan": "2f5e2752c2b4bad01df4523cfe2b41b702c60f00",
"versionType": "git"
},
{
"status": "affected",
"version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
"lessThan": "6c9f6a3b9fdd31a0836b681053155b5997c0156e",
"versionType": "git"
},
{
"status": "affected",
"version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
"lessThan": "c48e5aa01525577d6b6e782962a5bfb0e1535cb5",
"versionType": "git"
},
{
"status": "affected",
"version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
"lessThan": "41b8209376dffbd7b0b85c8bc4697d9166ac62ef",
"versionType": "git"
}
],
"programFiles": [
"drivers/staging/rtl8723bs/core/rtw_mlme_ext.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.12"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.12",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.52",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/staging/rtl8723bs/core/rtw_mlme_ext.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-100076
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #46095 · Revision 1
- Added to Heist Feed
- Publisher date