{"id":"CVE-2022-50222","aliases":["CVE-2022-50222"],"related":[],"kind":"vulnerability","state":"published","title":"tty: vt: initialize unicode screen buffer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: vt: initialize unicode screen buffer\n\nsyzbot reports kernel infoleak at vcs_read() [1], for buffer can be read\nimmediately after resize operation. Initialize buffer using kzalloc().\n\n  ----------\n  #include <fcntl.h>\n  #include <unistd.h>\n  #include <sys/ioctl.h>\n  #include <linux/fb.h>\n\n  int main(int argc, char *argv[])\n  {\n    struct fb_var_screeninfo var = { };\n    const int fb_fd = open(\"/dev/fb0\", 3);\n    ioctl(fb_fd, FBIOGET_VSCREENINFO, &var);\n    var.yres = 0x21;\n    ioctl(fb_fd, FBIOPUT_VSCREENINFO, &var);\n    return read(open(\"/dev/vcsu\", O_RDONLY), &var, sizeof(var)) == -1;\n  }\n  ----------","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: vt: initialize unicode screen buffer\n\nsyzbot reports kernel infoleak at vcs_read() [1], for buffer can be read\nimmediately after resize operation. Initialize buffer using kzalloc().\n\n  ----------\n  #include <fcntl.h>\n  #include <unistd.h>\n  #include <sys/ioctl.h>\n  #include <linux/fb.h>\n\n  int main(int argc, char *argv[])\n  {\n    struct fb_var_screeninfo var = { };\n    const int fb_fd = open(\"/dev/fb0\", 3);\n    ioctl(fb_fd, FBIOGET_VSCREENINFO, &var);\n    var.yres = 0x21;\n    ioctl(fb_fd, FBIOPUT_VSCREENINFO, &var);\n    return read(open(\"/dev/vcsu\", O_RDONLY), &var, sizeof(var)) == -1;\n  }\n  ----------","source":"cvelist"},{"lang":"es","text":"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, &amp;var); var.yres = 0x21; ioctl(fb_fd, FBIOPUT_VSCREENINFO, &amp;var); return read(open(\"/dev/vcsu\", O_RDONLY), &amp;var, sizeof(var)) == -1; } ----------","source":"nvd"}],"published":"2025-06-18T11:03:56.744Z","modified":"2026-11-05T20:17:27.950Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d8ae7242718738ee1bf9bfdd632d2a4b150fdd26","fixed":"e02fa87e572bb7d90dcdbce9c0f519f1eb992e96","status":"affected"},{"type":"git","introduced":"d8ae7242718738ee1bf9bfdd632d2a4b150fdd26","fixed":"cc9e874dace0c89ae535230c7da19b764746811e","status":"affected"},{"type":"git","introduced":"d8ae7242718738ee1bf9bfdd632d2a4b150fdd26","fixed":"5c6c65681f39bf71bc72ed589dec3b8b20e75cac","status":"affected"},{"type":"git","introduced":"d8ae7242718738ee1bf9bfdd632d2a4b150fdd26","fixed":"446f123aa6021e5f75a20789f05ff3f7ae51a42f","status":"affected"},{"type":"git","introduced":"d8ae7242718738ee1bf9bfdd632d2a4b150fdd26","fixed":"777a462e1ae50a01fc4a871efa8e34d596a1e17d","status":"affected"},{"type":"git","introduced":"d8ae7242718738ee1bf9bfdd632d2a4b150fdd26","fixed":"e0ef23e9b0ad18b9fd3741b0f1ad2282e4a18def","status":"affected"},{"type":"git","introduced":"d8ae7242718738ee1bf9bfdd632d2a4b150fdd26","fixed":"af77c56aa35325daa2bc2bed5c2ebf169be61b86","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"4.19.256","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.211","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.137","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.61","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.18","lastAffected":"5.18.*","status":"unaffected"},{"type":"semver","introduced":"5.19.2","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19","fixed":"4.19.256"},{"status":"affected","introduced":"4.20","fixed":"5.4.211"},{"status":"affected","introduced":"5.5","fixed":"5.10.137"},{"status":"affected","introduced":"5.11","fixed":"5.15.61"},{"status":"affected","introduced":"5.16","fixed":"5.18.18"},{"status":"affected","introduced":"5.19","fixed":"5.19.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e02fa87e572bb7d90dcdbce9c0f519f1eb992e96","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc9e874dace0c89ae535230c7da19b764746811e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c6c65681f39bf71bc72ed589dec3b8b20e75cac","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/446f123aa6021e5f75a20789f05ff3f7ae51a42f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/777a462e1ae50a01fc4a871efa8e34d596a1e17d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0ef23e9b0ad18b9fd3741b0f1ad2282e4a18def","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af77c56aa35325daa2bc2bed5c2ebf169be61b86","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:07:09.649Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50222","url":"https://www.cve.org/CVERecord?id=CVE-2022-50222","licence":"CVE Terms of Use","modified":"2026-11-05T20:10:29.522Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50222","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50222","licence":"Public domain","modified":"2026-11-05T20:17:27.950Z"}],"updatedAt":"2026-11-25T22:58:21.112Z","epss":{"score":0.00247,"percentile":0.17112,"date":"2026-12-01T12:00:22.000Z"}}