CVE-2026-43225 PUBLISHED

staging: rtl8723bs: fix memory leak on failure path

Assigner: Linux
Reserved: 01.05.2026 Published: 06.05.2026 Updated: 06.05.2026

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

staging: rtl8723bs: fix memory leak on failure path

cfg80211_inform_bss_frame() may return NULL on failure. In that case, the allocated buffer 'buf' is not freed and the function returns early, leading to potential memory leak. Fix this by ensuring that 'buf' is freed on both success and failure paths.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 9874e33ce52ba449ab0ade78752a2d37a2294617 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to a968c6a39607c129b8ac2c3c2a5e8923574e90d0 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 8311bb40698ba027649d5d1ca84ad4bf25270546 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 9f70f78e22b321429afc77befecedf05543d4e2c (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to af48c1a0abe849e167fc754b6c260b6d8350b6fd (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 017295b17bf1f477246c95bd253a7ef0cb4684c9 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to abe850d82c8cb72d28700673678724e779b1826e (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 5.15.202 to 5.15.* (incl.)
  • unaffected from 6.1.165 to 6.1.* (incl.)
  • unaffected from 6.6.128 to 6.6.* (incl.)
  • unaffected from 6.12.75 to 6.12.* (incl.)
  • unaffected from 6.18.16 to 6.18.* (incl.)
  • unaffected from 6.19.6 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References