fbdev: fbcon: release buffer when fbcon_do_set_font() failed
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().
02 / AFFECTED SOFTWARE
Affected packages
763 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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().
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/06926607b9fddf7ce8017493899ce6eb7e79a123
- https://git.kernel.org/stable/c/3c3bfb8586f848317ceba5d777e11204ba3e5758
- https://git.kernel.org/stable/c/5a341810a22e51c3a7a108f7896b5fd58d44d127
- https://git.kernel.org/stable/c/88ec6d11052da527eb9268831e7a9bc5bbad02f6
- https://git.kernel.org/stable/c/a609bfc1e644a8467cb31945ed1488374ebdc013
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50404.json
- https://nvd.nist.gov/vuln/detail/CVE-2022-50404