What’s Vulnerable › Vulnerabilities

CVE-2022-50222: tty: vt: initialize unicode screen buffer

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 products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.256, 5.10.137, 5.15.61, 5.18.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50222 or the next vulnerability affects your stack