# CVE-2026-89607: ecryptfs: reject oversized encrypted\_key\_size in parse\_tag\_3\_packet

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-09-11T19:45:09.583Z
- **Modified:** 2026-10-19T09:17:57.220Z

## Who should check

- Anyone running Linux \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 2cd21340163494d312836c77c9fbfe2530b3d075; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< e2152d491ae62d96a32ed59778680a242af1fbc6; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< d2802414081184f79a619ede178aeef3aa989793; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 33e050cac841498b5175f0f385eee903fd98863c; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< ccd13eff0e7356d2aa28b127b577e4e5ad4563f5; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 14cb36a500a5a3afbc955dbf69dabc565f1a3b26; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< a419c9ebfc9a40ee56aaad6dc68bfd67d400817b; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 5babe9c177c364521e3e682b949c5a8c47f4a441
- Anyone running Linux 2.6.19

## Description

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

ecryptfs: reject oversized encrypted\_key\_size in parse\_tag\_3\_packet

parse\_tag\_3\_packet() set encrypted\_key\_size from the Tag 3 packet body
without bounding it against ECRYPTFS\_MAX\_KEY\_BYTES (64). When
encrypted\_key\_size \> 64, decrypt\_passphrase\_encrypted\_session\_key()
sets decrypted\_key\_size = encrypted\_key\_size and performs two
out-of-bounds writes:

1. crypto\_skcipher\_decrypt() writes encrypted\_key\_size bytes into
   decrypted\_key\[64\] via scatterlist, overflowing into the parent
   ecryptfs\_auth\_tok struct.
2. memcpy(crypt\_stat-\>key, decrypted\_key, decrypted\_key\_size) writes
   into crypt\_stat-\>key\[64\], corrupting root\_iv, keysig\_list, and
   mutexes in ecryptfs\_crypt\_stat.

Only AES-192 (cipher code 0x08) enables this because it sets
crypt\_stat-\>key\_size = 24 independently of encrypted\_key\_size,
allowing crypto\_skcipher\_setkey() to succeed while encrypted\_key\_size
exceeds ECRYPTFS\_MAX\_KEY\_BYTES.

The PKI decryption path (parse\_tag\_65\_packet) already validates
decrypted\_key\_size \<= ECRYPTFS\_MAX\_KEY\_BYTES; the passphrase path
omits this check.

Bound encrypted\_key\_size against ECRYPTFS\_MAX\_KEY\_BYTES (64) rather
than ECRYPTFS\_MAX\_ENCRYPTED\_KEY\_BYTES (512). The 64-byte limit also
protects the 512-byte encrypted\_key\[\] buffer, so the former 512-byte
check is removed as redundant.

\[tyhicks: Adjust the code comment to refer to macros representing the
 buffer sizes rather than mentioning the buffer size values since they
 may change in the future\]

## Affected and fixed versions

- Linux: \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 2cd21340163494d312836c77c9fbfe2530b3d075; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< e2152d491ae62d96a32ed59778680a242af1fbc6; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< d2802414081184f79a619ede178aeef3aa989793; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 33e050cac841498b5175f0f385eee903fd98863c; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< ccd13eff0e7356d2aa28b127b577e4e5ad4563f5; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 14cb36a500a5a3afbc955dbf69dabc565f1a3b26; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< a419c9ebfc9a40ee56aaad6dc68bfd67d400817b; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 5babe9c177c364521e3e682b949c5a8c47f4a441 (cvelist)
- Linux: 2.6.19 (cvelist)

## Mitigation

- Upgrade Linux to 5babe9c177c364521e3e682b949c5a8c47f4a441 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89607. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89607.md
Affected: Linux >= 237fead619984cc48818fe12ee0ceada3f55b012, < 2cd21340163494d312836c77c9fbfe2530b3d075; >= 237fead619984cc48818fe12ee0ceada3f55b012, < e2152d491ae62d96a32ed59778680a242af1fbc6; >= 237fead619984cc48818fe12ee0ceada3f55b012, < d2802414081184f79a619ede178aeef3aa989793; >= 237fead619984cc48818fe1…
Fixed in: Linux 2cd21340163494d312836c77c9fbfe2530b3d075, Linux 33e050cac841498b5175f0f385eee903fd98863c, Linux 14cb36a500a5a3afbc955dbf69dabc565f1a3b26, Linux 5babe9c177c364521e3e682b949c5a8c47f4a441

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89607 being exploited?

There is no confirmed exploitation: CVE-2026-89607 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89607?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-89607?

Linux \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 2cd21340163494d312836c77c9fbfe2530b3d075; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< e2152d491ae62d96a32ed59778680a242af1fbc6; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< d2802414081184f79a619ede178aeef3aa989793; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 33e050cac841498b5175f0f385eee903fd98863c; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< ccd13eff0e7356d2aa28b127b577e4e5ad4563f5; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 14cb36a500a5a3afbc955dbf69dabc565f1a3b26; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< a419c9ebfc9a40ee56aaad6dc68bfd67d400817b; \>= 237fead619984cc48818fe12ee0ceada3f55b012, \< 5babe9c177c364521e3e682b949c5a8c47f4a441; Linux 2.6.19.

### Is there a fix for CVE-2026-89607?

Yes. Fixed in Linux 2cd21340163494d312836c77c9fbfe2530b3d075, Linux 33e050cac841498b5175f0f385eee903fd98863c, Linux 14cb36a500a5a3afbc955dbf69dabc565f1a3b26, Linux 5babe9c177c364521e3e682b949c5a8c47f4a441. Upgrade Linux to 5babe9c177c364521e3e682b949c5a8c47f4a441 or later.

### How do I check if I'm affected by CVE-2026-89607?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/2cd21340163494d312836c77c9fbfe2530b3d075>
- other: <https://git.kernel.org/stable/c/e2152d491ae62d96a32ed59778680a242af1fbc6>
- other: <https://git.kernel.org/stable/c/d2802414081184f79a619ede178aeef3aa989793>
- other: <https://git.kernel.org/stable/c/33e050cac841498b5175f0f385eee903fd98863c>
- other: <https://git.kernel.org/stable/c/ccd13eff0e7356d2aa28b127b577e4e5ad4563f5>
- other: <https://git.kernel.org/stable/c/14cb36a500a5a3afbc955dbf69dabc565f1a3b26>
- other: <https://git.kernel.org/stable/c/a419c9ebfc9a40ee56aaad6dc68bfd67d400817b>
- other: <https://git.kernel.org/stable/c/5babe9c177c364521e3e682b949c5a8c47f4a441>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89607>

HTML: <https://flawdb.com/CVE-2026-89607> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89607>
