# CVE-2022-50404: fbdev: fbcon: release buffer when fbcon_do_set_font() failed

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-09-18T16:03:49.643Z
- Modified: 2026-06-17T05:23:28.093Z
- 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:

fbdev: fbcon: release buffer when fbcon_do_set_font() failed

syzbot is reporting memory leak at fbcon_do_set_font() [1], for
commit a5a923038d70 ("fbdev: fbcon: Properly revert changes when
vc_resize() failed") missed that the buffer might be newly allocated
by fbcon_set_font().

(As written by CVE List.)

## Affected

- Linux Linux: from 868749a7456dc48e93887a8474194e2ee6d6c21f before 5a341810a22e51c3a7a108f7896b5fd58d44d127; from ebd6f886aa2447fcfcdce5450c9e1028e1d681bb before 88ec6d11052da527eb9268831e7a9bc5bbad02f6; from a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 before 06926607b9fddf7ce8017493899ce6eb7e79a123; from a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 before a609bfc1e644a8467cb31945ed1488374ebdc013; from a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 before 3c3bfb8586f848317ceba5d777e11204ba3e5758; f08ccb792d3eaf1dc62d8cbf6a30d6522329f660; from 5.15.64 before 5.15.86; from 5.19.6 before 5.20; 6.0 (not affected: before 6.0; 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.15.64 before 5.15.86; from 5.19.6 before 6.0; from 6.0.1 before 6.0.16; from 6.1 before 6.1.2; 6.0

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5a341810a22e51c3a7a108f7896b5fd58d44d127> (patch)
- <https://git.kernel.org/stable/c/88ec6d11052da527eb9268831e7a9bc5bbad02f6> (patch)
- <https://git.kernel.org/stable/c/06926607b9fddf7ce8017493899ce6eb7e79a123> (patch)
- <https://git.kernel.org/stable/c/a609bfc1e644a8467cb31945ed1488374ebdc013> (patch)
- <https://git.kernel.org/stable/c/3c3bfb8586f848317ceba5d777e11204ba3e5758> (patch)

## Sources

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

---

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