CVE-2022-48627 vt: fix memory overlapping when deleting chars in the buffer

Medium 5.5 Published Updated

A memory overlapping copy in the Linux kernel VT subsystem can cause data corruption or system instability when deleting long lines.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-48627?

CVE-2022-48627 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 2 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In the Linux kernel, the following vulnerability has been resolved:

vt: fix memory overlapping when deleting chars in the buffer

A memory overlapping copy occurs when deleting a long line. This memory overlapping copy can cause data corruption when scr_memcpyw is optimized to memcpy because memcpy does not ensure its behavior if the destination buffer overlaps with the source buffer. The line buffer is not always broken, because the memcpy utilizes the hardware acceleration, whose result is not deterministic.

Fix this problem by using replacing the scr_memcpyw with scr_memmovew.

Weakness: CWE-787

Which versions are affected by CVE-2022-48627?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2022-48627?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-48627 being exploited?

There is no known exploitation of CVE-2022-48627 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-48627, GHSA-73f5-wqmw-37vp, UBUNTU-CVE-2022-48627.

Is CVE-2022-48627 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free