{"id":"CVE-2021-47383","aliases":["CVE-2021-47383"],"related":[],"kind":"vulnerability","state":"published","title":"tty: Fix out-of-bound vmalloc access in imageblit","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: Fix out-of-bound vmalloc access in imageblit\n\nThis issue happens when a userspace program does an ioctl\nFBIOPUT_VSCREENINFO passing the fb_var_screeninfo struct\ncontaining only the fields xres, yres, and bits_per_pixel\nwith values.\n\nIf this struct is the same as the previous ioctl, the\nvc_resize() detects it and doesn't call the resize_screen(),\nleaving the fb_var_screeninfo incomplete. And this leads to\nthe updatescrollmode() calculates a wrong value to\nfbcon_display->vrows, which makes the real_y() return a\nwrong value of y, and that value, eventually, causes\nthe imageblit to access an out-of-bound address value.\n\nTo solve this issue I made the resize_screen() be called\neven if the screen does not need any resizing, so it will\n\"fix and fill\" the fb_var_screeninfo independently.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: Fix out-of-bound vmalloc access in imageblit\n\nThis issue happens when a userspace program does an ioctl\nFBIOPUT_VSCREENINFO passing the fb_var_screeninfo struct\ncontaining only the fields xres, yres, and bits_per_pixel\nwith values.\n\nIf this struct is the same as the previous ioctl, the\nvc_resize() detects it and doesn't call the resize_screen(),\nleaving the fb_var_screeninfo incomplete. And this leads to\nthe updatescrollmode() calculates a wrong value to\nfbcon_display->vrows, which makes the real_y() return a\nwrong value of y, and that value, eventually, causes\nthe imageblit to access an out-of-bound address value.\n\nTo solve this issue I made the resize_screen() be called\neven if the screen does not need any resizing, so it will\n\"fix and fill\" the fb_var_screeninfo independently.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: tty: corrige el acceso vmalloc fuera de los límites en imageblit. Este problema ocurre cuando un programa de espacio de usuario realiza un ioctl FBIOPUT_VSCREENINFO pasando la estructura fb_var_screeninfo que contiene solo los campos xres, yres y bits_per_pixel con valores. Si esta estructura es la misma que la ioctl anterior, vc_resize() la detecta y no llama a resize_screen(), dejando fb_var_screeninfo incompleto. Y esto lleva a que updatecrollmode() calcule un valor incorrecto para fbcon_display-&gt;vrows, lo que hace que real_y() devuelva un valor incorrecto de y, y ese valor, eventualmente, hace que imageblit acceda a un valor de dirección fuera de los límites. . Para resolver este problema, hice que se llamara a resize_screen() incluso si la pantalla no necesita ningún cambio de tamaño, por lo que \"arreglará y completará\" fb_var_screeninfo de forma independiente.","source":"nvd"}],"published":"2024-05-21T15:03:44.286Z","modified":"2026-08-05T08:47:33.469Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"7e71fcedfda6f7de18f850a6b36e78d78b04476f","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"70aed03b1d5a5df974f456cdc8eedb213c94bb8b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"067c694d06040db6f0c65281bb358452ca6d85b9","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"8a6a240f52e14356386030d8958ae8b1761d2325","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"883f7897a25e3ce14a7f274ca4c73f49ac84002a","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"d570c48dd37dbe8fc6875d4461d01a9554ae2560","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"699d926585daa6ec44be556cdc1ab89e5d54557b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"3b0c406124719b625b1aba431659f5cdc24a982c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"4.4.286","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.285","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.249","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.209","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.151","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.71","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.14.10","lastAffected":"5.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.15","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","fixed":"4.4.286"},{"status":"affected","introduced":"4.5","fixed":"4.9.285"},{"status":"affected","introduced":"4.10","fixed":"4.14.249"},{"status":"affected","introduced":"4.15","fixed":"4.19.209"},{"status":"affected","introduced":"4.20","fixed":"5.4.151"},{"status":"affected","introduced":"5.5","fixed":"5.10.71"},{"status":"affected","introduced":"5.11","fixed":"5.14.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7e71fcedfda6f7de18f850a6b36e78d78b04476f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70aed03b1d5a5df974f456cdc8eedb213c94bb8b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/067c694d06040db6f0c65281bb358452ca6d85b9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a6a240f52e14356386030d8958ae8b1761d2325","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/883f7897a25e3ce14a7f274ca4c73f49ac84002a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d570c48dd37dbe8fc6875d4461d01a9554ae2560","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/699d926585daa6ec44be556cdc1ab89e5d54557b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b0c406124719b625b1aba431659f5cdc24a982c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-17T17:37:20.634Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47383","url":"https://www.cve.org/CVERecord?id=CVE-2021-47383","licence":"CVE Terms of Use","modified":"2026-08-05T08:47:33.469Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47383","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47383","licence":"Public domain","modified":"2026-08-04T10:17:00.893Z"}],"updatedAt":"2026-11-25T22:58:08.827Z","epss":{"score":0.00265,"percentile":0.1968,"date":"2026-12-01T12:00:22.000Z"}}