# CVE-2022-50537: firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-07T15:21:03.749Z
- Modified: 2026-11-05T21:17:04.460Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()

In rpi_firmware_probe(), if mbox_request_channel() fails, the 'fw' will
not be freed through rpi_firmware_delete(), fix this leak by calling
kfree() in the error path.

(As written by CVE List.)

## Affected

- Linux Linux: from d537afa08e156a0a72562e625506825c2776fcfa before 62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49; from 60831f5ae6c713afceb6d29f40899ed112f36059 before d34742245e4366579f9a80f8cfe4a63248e838e0; from 1e7c57355a3bc617fc220234889e49fe722a6305 before b308fdedef095aac14569f810d46edf773ea7d1e; from 1e7c57355a3bc617fc220234889e49fe722a6305 before 6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34; from 1e7c57355a3bc617fc220234889e49fe722a6305 before 71d2abab374f707ab8ac8dcef191fd2b3b67b8bd; from 1e7c57355a3bc617fc220234889e49fe722a6305 before 7b51161696e803fd5f9ad55b20a64c2df313f95c; from 5.10.65 before 5.10.163; 5.13 (not affected: before 5.13; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.10.65 before 5.10.163; from 5.13 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## References

- <https://git.kernel.org/stable/c/62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49> (patch)
- <https://git.kernel.org/stable/c/d34742245e4366579f9a80f8cfe4a63248e838e0> (patch)
- <https://git.kernel.org/stable/c/b308fdedef095aac14569f810d46edf773ea7d1e> (patch)
- <https://git.kernel.org/stable/c/6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34> (patch)
- <https://git.kernel.org/stable/c/71d2abab374f707ab8ac8dcef191fd2b3b67b8bd> (patch)
- <https://git.kernel.org/stable/c/7b51161696e803fd5f9ad55b20a64c2df313f95c> (patch)

## Sources

- CVE List: [CVE-2022-50537](https://www.cve.org/CVERecord?id=CVE-2022-50537), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50537](https://nvd.nist.gov/vuln/detail/CVE-2022-50537), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50537 · Whole record: https://cve.day/CVE-2022-50537.json · Rebuilt by cve.day 2026-11-25T22:58:21.262Z
