vt: fix memory overlapping when deleting chars in the buffer
Published Mar 2, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.28%
Description
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.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 3.7StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<3.7
- Version 4.19.312StatusunaffectedConstraints<=4.19.*
- Version 5.10.132StatusunaffectedConstraints<=5.10.*
- Version 5.15.56StatusunaffectedConstraints<=5.15.*
- Version 5.18.13StatusunaffectedConstraints<=5.18.*
- Version 5.19StatusunaffectedConstraints<=*
- Version 5.4.274StatusunaffectedConstraints<=5.4.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| |||||||||||||||||||||||||||
| Linux | Linux | affected |
|
Configuration 1
- ≥ 3.7 · ≤ 4.19.312
- ≥ 4.20 · < 5.4.274
- ≥ 5.5 · < 5.10.132
- ≥ 5.11 · < 5.15.56
- ≥ 5.16 · < 5.18.13
- 5.19
- 5.19
- 5.19
- 5.19
- 5.19
- 5.19
Configuration 2
- 10.0
No data.
Red Hat Enterprise Linux 8
kernel-0:4.18.0-553.5.1.el8_10
Fixed · RHSA-2024:3618
Red Hat Enterprise Linux 8
kernel-rt-0:4.18.0-553.5.1.rt7.346.el8_10
Fixed · RHSA-2024:3627
Red Hat Enterprise Linux 8.8 Extended Update Support
kernel-0:4.18.0-477.67.1.el8_8
Fixed · RHSA-2024:5255
Red Hat Enterprise Linux 9
kernel-0:5.14.0-427.26.1.el9_4
Fixed · RHSA-2024:4583
Red Hat Enterprise Linux 9
kernel-0:5.14.0-427.26.1.el9_4
Fixed · RHSA-2024:4583
Red Hat Enterprise Linux 9.2 Extended Update Support
kernel-0:5.14.0-284.73.1.el9_2
Fixed · RHSA-2024:4533
Red Hat Enterprise Linux 9.2 Extended Update Support
kernel-rt-0:5.14.0-284.73.1.rt14.358.el9_2
Fixed · RHSA-2024:4554
Red Hat Enterprise Linux 6
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 9
kernel-rt
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-553.5.1.el8_10 | Fixed | RHSA-2024:3618 |
| Red Hat Enterprise Linux 8 | kernel-rt-0:4.18.0-553.5.1.rt7.346.el8_10 | Fixed | RHSA-2024:3627 |
| Red Hat Enterprise Linux 8.8 Extended Update Support | kernel-0:4.18.0-477.67.1.el8_8 | Fixed | RHSA-2024:5255 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-427.26.1.el9_4 | Fixed | RHSA-2024:4583 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-427.26.1.el9_4 | Fixed | RHSA-2024:4583 |
| Red Hat Enterprise Linux 9.2 Extended Update Support | kernel-0:5.14.0-284.73.1.el9_2 | Fixed | RHSA-2024:4533 |
| Red Hat Enterprise Linux 9.2 Extended Update Support | kernel-rt-0:5.14.0-284.73.1.rt14.358.el9_2 | Fixed | RHSA-2024:4554 |
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.
References (13)
- https://access.redhat.com/security/cve/CVE-2022-48627 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2267509 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-51322 Advisory
- https://git.kernel.org/stable/c/14d2cc21ca622310babf373e3a8f0b40acfe8265 Patch
- https://git.kernel.org/stable/c/39cdb68c64d84e71a4a717000b6e5de208ee60cc Patch
- https://git.kernel.org/stable/c/57964a5710252bc82fe22d9fa98c180c58c20244 Patch
- https://git.kernel.org/stable/c/815be99d934e3292906536275f2b8d5131cdf52c Patch
- https://git.kernel.org/stable/c/bfee93c9a6c395f9aa62268f1cedf64999844926 Patch
- https://git.kernel.org/stable/c/c8686c014b5e872ba7e334f33ca553f14446fc29 Patch
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Mailing List
- https://lore.kernel.org/linux-cve-announce/2024030252-CVE-2022-48627-c7bf@gregkh/T/#u
- https://nvd.nist.gov/vuln/detail/CVE-2022-48627
- https://www.cve.org/CVERecord?id=CVE-2022-48627
Change history (0)
No recorded changes yet.