CVE-2026-89608: ecryptfs: pass packet set buffer size to parser
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ecryptfs: pass packet set buffer size to parser
ecryptfs_parse_packet_set() receives a pointer into the file header, but it calculates the remaining packet buffer size from PAGE_SIZE - 8. For version 1 headers the packet set starts later in the header, so this can overstate the available buffer.
Pass the actual packet set buffer length from the caller and calculate per-packet limits from the remaining bytes in that buffer. Recompute the remaining length after consuming a tag 3 packet before parsing the following tag 11 packet.
The Linux kernel CVE team has assigned CVE-2026-89608 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.19 with commit 237fead619984cc48818fe12ee0ceada3f55b012 and fixed in 6.12.109 with commit 329de8b9e988b152b938f09224670d97bada0b96 Issue introduced in 2.6.19 with commit 237fead619984cc48818fe12ee0ceada3f55b012 and fixed in 6.18.50 with commit e5d254e654f2311a3c4b9c791d7f216554bcd17a Issue introduced in 2.6.19 with commit 237fead619984cc48818fe12ee0ceada3f55b012 and fixed in 7.2.4 with commit 747fd45be396a6aea3420ab657a0ab4e60185b05 Issue introduced in 2.6.19 with commit 237fead619984cc48818fe12ee0ceada3f55b012 and fixed in 7.3-rc1 with commit 2602b79c5b3e2f6fce12e38a670f8e3fda4e46a2
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89608
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/ecryptfs/crypto.c
fs/ecryptfs/ecryptfs_kernel.h
fs/ecryptfs/keystore.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/329de8b9e988b152b938f09224670d97bada0b96 https://git.kernel.org/stable/c/e5d254e654f2311a3c4b9c791d7f216554bcd17a https://git.kernel.org/stable/c/747fd45be396a6aea3420ab657a0ab4e60185b05 https://git.kernel.org/stable/c/2602b79c5b3e2f6fce12e38a670f8e3fda4e46a2