5.5medium
tty: vt: initialize unicode screen buffer
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: tty: vt: initialize unicode screen buffer syzbot reports kernel infoleak at vcs_read() [1], for buffer can be read immediately after resize operation. Initialize buffer using kzalloc(). ---------- #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <linux/fb.h> int main(int argc, char *argv[]) { struct fb_var_screeninfo var = { }; const int fb_fd = open("/dev/fb0", 3); ioctl(fb_fd, FBIOGET_VSCREENINFO, &var); var.yres = 0x21; ioctl(fb_fd, FBIOPUT_VSCREENINFO, &var); return read(open("/dev/vcsu", O_RDONLY), &var, sizeof(var)) == -1; } ----------
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d8ae7242718738ee1bf9bfdd632d2a4b150fdd26 before e02fa87e572bb7d90dcdbce9c0f519f1eb992e96, from d8ae7242718738ee1bf9bfdd632d2a4b150fdd26 before cc9e874dace0c89ae535230c7da19b764746811e, from d8ae7242718738ee1bf9bfdd632d2a4b150fdd26 before 5c6c65681f39bf71bc72ed589dec3b8b20e75cac, from d8ae7242718738ee1bf9bfdd632d2a4b150fdd26 before 446f123aa6021e5f75a20789f05ff3f7ae51a42f, from d8ae7242718738ee1bf9bfdd632d2a4b150fdd26 before 777a462e1ae50a01fc4a871efa8e34d596a1e17d, from d8ae7242718738ee1bf9bfdd632d2a4b150fdd26 before e0ef23e9b0ad18b9fd3741b0f1ad2282e4a18def, from d8ae7242718738ee1bf9bfdd632d2a4b150fdd26 before af77c56aa35325daa2bc2bed5c2ebf169be61b86, 4.19 Not affected: before 4.19, from 4.19.256 up to 4.19.*, from 5.4.211 up to 5.4.*, from 5.10.137 up to 5.10.*, from 5.15.61 up to 5.15.*, from 5.18.18 up to 5.18.* | CVE List |
| linux linux_kernel | from 4.19 before 4.19.256, from 4.20 before 5.4.211, from 5.5 before 5.10.137, from 5.11 before 5.15.61, from 5.16 before 5.18.18, from 5.19 before 5.19.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: tty: vt: initialize unicode screen buffer syzbot reports kernel infoleak at vcs_read() [1], for buffer can be read immediately after resize operation. Initialize buffer using kzalloc(). ---------- #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <linux/fb.h> int main(int argc, char *argv[]) { struct fb_var_screeninfo var = { }; const int fb_fd = open("/dev/fb0", 3); ioctl(fb_fd, FBIOGET_VSCREENINFO, &var); var.yres = 0x21; ioctl(fb_fd, FBIOPUT_VSCREENINFO, &var); return read(open("/dev/vcsu", O_RDONLY), &var, sizeof(var)) == -1; } ----------
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tty: vt: al inicializar el búfer de pantalla Unicode, syzbot reporta una fuga de información del kernel en vcs_read() [1], ya que el búfer se puede leer inmediatamente después de la operación de cambio de tamaño. Inicialice el búfer con kzalloc(). ---------- #include #include #include #include int main(int argc, char *argv[]) { struct fb_var_screeninfo var = { }; const int fb_fd = open("/dev/fb0", 3); ioctl(fb_fd, FBIOGET_VSCREENINFO, &var); var.yres = 0x21; ioctl(fb_fd, FBIOPUT_VSCREENINFO, &var); return read(open("/dev/vcsu", O_RDONLY), &var, sizeof(var)) == -1; } ----------
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50222 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2022-50222 changed 2026-11-05 | Public domain |