# CVE-2022-50537: firmware: raspberrypi: fix possible memory leak in rpi\_firmware\_probe()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-07T15:21:03.749Z
- **Modified:** 2026-11-05T21:17:04.460Z

## Who should check

- Anyone running Linux \>= d537afa08e156a0a72562e625506825c2776fcfa, \< 62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49; \>= 60831f5ae6c713afceb6d29f40899ed112f36059, \< d34742245e4366579f9a80f8cfe4a63248e838e0; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< b308fdedef095aac14569f810d46edf773ea7d1e; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 71d2abab374f707ab8ac8dcef191fd2b3b67b8bd; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 7b51161696e803fd5f9ad55b20a64c2df313f95c; \>= 5.10.65, \< 5.10.163
- Anyone running Linux 5.13

## 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.

## Affected and fixed versions

- Linux: \>= d537afa08e156a0a72562e625506825c2776fcfa, \< 62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49; \>= 60831f5ae6c713afceb6d29f40899ed112f36059, \< d34742245e4366579f9a80f8cfe4a63248e838e0; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< b308fdedef095aac14569f810d46edf773ea7d1e; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 71d2abab374f707ab8ac8dcef191fd2b3b67b8bd; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 7b51161696e803fd5f9ad55b20a64c2df313f95c; \>= 5.10.65, \< 5.10.163 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 5.10.163 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50537. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50537.md
Affected: Linux >= d537afa08e156a0a72562e625506825c2776fcfa, < 62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49; >= 60831f5ae6c713afceb6d29f40899ed112f36059, < d34742245e4366579f9a80f8cfe4a63248e838e0; >= 1e7c57355a3bc617fc220234889e49fe722a6305, < b308fdedef095aac14569f810d46edf773ea7d1e; >= 1e7c57355a3bc617fc22023…
Fixed in: Linux 62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49, Linux 6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34, Linux 71d2abab374f707ab8ac8dcef191fd2b3b67b8bd, Linux 7b51161696e803fd5f9ad55b20a64c2df313f95c, Linux 5.10.163

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50537 being exploited?

There is no confirmed exploitation: CVE-2022-50537 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50537?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50537?

Linux \>= d537afa08e156a0a72562e625506825c2776fcfa, \< 62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49; \>= 60831f5ae6c713afceb6d29f40899ed112f36059, \< d34742245e4366579f9a80f8cfe4a63248e838e0; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< b308fdedef095aac14569f810d46edf773ea7d1e; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 71d2abab374f707ab8ac8dcef191fd2b3b67b8bd; \>= 1e7c57355a3bc617fc220234889e49fe722a6305, \< 7b51161696e803fd5f9ad55b20a64c2df313f95c; \>= 5.10.65, \< 5.10.163; Linux 5.13.

### Is there a fix for CVE-2022-50537?

Yes. Fixed in Linux 62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49, Linux 6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34, Linux 71d2abab374f707ab8ac8dcef191fd2b3b67b8bd, Linux 7b51161696e803fd5f9ad55b20a64c2df313f95c, Linux 5.10.163. Upgrade Linux to 5.10.163 or later.

### How do I check if I'm affected by CVE-2022-50537?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50537>

HTML: <https://flawdb.com/CVE-2022-50537> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50537>
