{"id":"CVE-2026-89607","aliases":["CVE-2026-89607"],"related":[],"kind":"vulnerability","state":"published","title":"ecryptfs: reject oversized encrypted_key_size in parse_tag_3_packet","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\necryptfs: reject oversized encrypted_key_size in parse_tag_3_packet\n\nparse_tag_3_packet() set encrypted_key_size from the Tag 3 packet body\nwithout bounding it against ECRYPTFS_MAX_KEY_BYTES (64). When\nencrypted_key_size > 64, decrypt_passphrase_encrypted_session_key()\nsets decrypted_key_size = encrypted_key_size and performs two\nout-of-bounds writes:\n\n1. crypto_skcipher_decrypt() writes encrypted_key_size bytes into\n   decrypted_key[64] via scatterlist, overflowing into the parent\n   ecryptfs_auth_tok struct.\n2. memcpy(crypt_stat->key, decrypted_key, decrypted_key_size) writes\n   into crypt_stat->key[64], corrupting root_iv, keysig_list, and\n   mutexes in ecryptfs_crypt_stat.\n\nOnly AES-192 (cipher code 0x08) enables this because it sets\ncrypt_stat->key_size = 24 independently of encrypted_key_size,\nallowing crypto_skcipher_setkey() to succeed while encrypted_key_size\nexceeds ECRYPTFS_MAX_KEY_BYTES.\n\nThe PKI decryption path (parse_tag_65_packet) already validates\ndecrypted_key_size <= ECRYPTFS_MAX_KEY_BYTES; the passphrase path\nomits this check.\n\nBound encrypted_key_size against ECRYPTFS_MAX_KEY_BYTES (64) rather\nthan ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES (512). The 64-byte limit also\nprotects the 512-byte encrypted_key[] buffer, so the former 512-byte\ncheck is removed as redundant.\n\n[tyhicks: Adjust the code comment to refer to macros representing the\n buffer sizes rather than mentioning the buffer size values since they\n may change in the future]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\necryptfs: reject oversized encrypted_key_size in parse_tag_3_packet\n\nparse_tag_3_packet() set encrypted_key_size from the Tag 3 packet body\nwithout bounding it against ECRYPTFS_MAX_KEY_BYTES (64). When\nencrypted_key_size > 64, decrypt_passphrase_encrypted_session_key()\nsets decrypted_key_size = encrypted_key_size and performs two\nout-of-bounds writes:\n\n1. crypto_skcipher_decrypt() writes encrypted_key_size bytes into\n   decrypted_key[64] via scatterlist, overflowing into the parent\n   ecryptfs_auth_tok struct.\n2. memcpy(crypt_stat->key, decrypted_key, decrypted_key_size) writes\n   into crypt_stat->key[64], corrupting root_iv, keysig_list, and\n   mutexes in ecryptfs_crypt_stat.\n\nOnly AES-192 (cipher code 0x08) enables this because it sets\ncrypt_stat->key_size = 24 independently of encrypted_key_size,\nallowing crypto_skcipher_setkey() to succeed while encrypted_key_size\nexceeds ECRYPTFS_MAX_KEY_BYTES.\n\nThe PKI decryption path (parse_tag_65_packet) already validates\ndecrypted_key_size <= ECRYPTFS_MAX_KEY_BYTES; the passphrase path\nomits this check.\n\nBound encrypted_key_size against ECRYPTFS_MAX_KEY_BYTES (64) rather\nthan ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES (512). The 64-byte limit also\nprotects the 512-byte encrypted_key[] buffer, so the former 512-byte\ncheck is removed as redundant.\n\n[tyhicks: Adjust the code comment to refer to macros representing the\n buffer sizes rather than mentioning the buffer size values since they\n may change in the future]","source":"cvelist"}],"published":"2026-09-11T19:45:09.583Z","modified":"2026-10-19T09:17:57.220Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"2cd21340163494d312836c77c9fbfe2530b3d075","status":"affected"},{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"e2152d491ae62d96a32ed59778680a242af1fbc6","status":"affected"},{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"d2802414081184f79a619ede178aeef3aa989793","status":"affected"},{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"33e050cac841498b5175f0f385eee903fd98863c","status":"affected"},{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"ccd13eff0e7356d2aa28b127b577e4e5ad4563f5","status":"affected"},{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"14cb36a500a5a3afbc955dbf69dabc565f1a3b26","status":"affected"},{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"a419c9ebfc9a40ee56aaad6dc68bfd67d400817b","status":"affected"},{"type":"git","introduced":"237fead619984cc48818fe12ee0ceada3f55b012","fixed":"5babe9c177c364521e3e682b949c5a8c47f4a441","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.19","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.109","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2cd21340163494d312836c77c9fbfe2530b3d075","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e2152d491ae62d96a32ed59778680a242af1fbc6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2802414081184f79a619ede178aeef3aa989793","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33e050cac841498b5175f0f385eee903fd98863c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ccd13eff0e7356d2aa28b127b577e4e5ad4563f5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14cb36a500a5a3afbc955dbf69dabc565f1a3b26","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a419c9ebfc9a40ee56aaad6dc68bfd67d400817b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5babe9c177c364521e3e682b949c5a8c47f4a441","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89607","url":"https://www.cve.org/CVERecord?id=CVE-2026-89607","licence":"CVE Terms of Use","modified":"2026-10-19T08:49:39.398Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89607","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89607","licence":"Public domain","modified":"2026-10-19T09:17:57.220Z"}],"updatedAt":"2026-11-25T22:59:38.082Z","epss":{"score":0.00169,"percentile":0.06512,"date":"2026-12-01T12:00:22.000Z"}}