CVE-2024-45306

NameCVE-2024-45306
DescriptionVim is an open source, command line text editor. Patch v9.1.0038 optimized how the cursor position is calculated and removed a loop, that verified that the cursor position always points inside a line and does not become invalid by pointing beyond the end of a line. Back then we assumed this loop is unnecessary. However, this change made it possible that the cursor position stays invalid and points beyond the end of a line, which would eventually cause a heap-buffer-overflow when trying to access the line pointer at the specified cursor position. It's not quite clear yet, what can lead to this situation that the cursor points to an invalid position. That's why patch v9.1.0707 does not include a test case. The only observed impact has been a program crash. This issue has been addressed in with the patch v9.1.0707. All users are advised to upgrade.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
vim (PTS)jessie, jessie (lts)2:7.4.488-7+deb8u11fixed
stretch (security)2:8.0.0197-4+deb9u7fixed
stretch (lts), stretch2:8.0.0197-4+deb9u11fixed
buster (security), buster, buster (lts)2:8.1.0875-5+deb10u6fixed
bullseye2:8.2.2434-3+deb11u1fixed
bookworm2:9.0.1378-2fixed
trixie2:9.1.0496-1vulnerable
sid2:9.1.0709-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
vimsourcejessie(not affected)
vimsourcestretch(not affected)
vimsourcebuster(not affected)
vimsourcebullseye(not affected)
vimsourcebookworm(not affected)
vimsource(unstable)2:9.1.0709-1

Notes

[bookworm] - vim <not-affected> (Vulnerable code not present)
[bullseye] - vim <not-affected> (Vulnerable code not present)
https://github.com/vim/vim/security/advisories/GHSA-wxf9-c5gx-qrwr
Fixed by: https://github.com/vim/vim/commit/396fd1ec2956307755392a1c61f55d5c1847f308 (v9.1.0707)
[buster] - vim <not-affected> (Vulnerable code not present)
[stretch] - vim <not-affected> (Vulnerable code not present)
[jessie] - vim <not-affected> (Vulnerable code not present)

Search for package or bug name: Reporting problems