Skip to contentSkip to conversation

CVE-2026-46033: crypto: authencesn - reject short ahash digests during instance creation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

crypto: authencesn - reject short ahash digests during instance creation

authencesn requires either a zero authsize or an authsize of at least 4 bytes because the ESN encrypt/decrypt paths always move 4 bytes of high-order sequence number data at the end of the authenticated data.

While crypto_authenc_esn_setauthsize() already rejects explicit non-zero authsizes in the range 1..3, crypto_authenc_esn_create() still copied auth->digestsize into inst->alg.maxauthsize without validating it. The AEAD core then initialized the tfm's default authsize from that value.

As a result, selecting an ahash with digest size 1..3, such as cbcmac(cipher_null), exposed authencesn instances whose default authsize was invalid even though setauthsize() would have rejected the same value. AF_ALG could then trigger the ESN tail handling with a too-short tag and hit an out-of-bounds access.

Reject authencesn instances whose ahash digest size is in the invalid non-zero range 1..3 so that no tfm can inherit an unsupported default authsize.

The Linux kernel CVE team has assigned CVE-2026-46033 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.11 with commit f15f05b0a5de667c821a9727c33bce9d1d9b26dd and fixed in 6.6.140 with commit b69933e97efea238ebbfcf70c2b1be1cd03f13e3
	Issue introduced in 4.11 with commit f15f05b0a5de667c821a9727c33bce9d1d9b26dd and fixed in 6.12.86 with commit 67f1f0933cc3d78dde222842bcad2778ec7a0b88
	Issue introduced in 4.11 with commit f15f05b0a5de667c821a9727c33bce9d1d9b26dd and fixed in 6.18.27 with commit b42821c15445f93daea3e76ada682b2b7181c476
	Issue introduced in 4.11 with commit f15f05b0a5de667c821a9727c33bce9d1d9b26dd and fixed in 7.0.4 with commit 9aff81e8217e9de2929084b03b3c7f81988c112b
	Issue introduced in 4.11 with commit f15f05b0a5de667c821a9727c33bce9d1d9b26dd and fixed in 7.1-rc2 with commit 5db6ef9847717329f12c5ea8aba7e9f588a980c0

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-46033

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:
crypto/authencesn.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/b69933e97efea238ebbfcf70c2b1be1cd03f13e3
	https://git.kernel.org/stable/c/67f1f0933cc3d78dde222842bcad2778ec7a0b88
	https://git.kernel.org/stable/c/b42821c15445f93daea3e76ada682b2b7181c476
	https://git.kernel.org/stable/c/9aff81e8217e9de2929084b03b3c7f81988c112b
	https://git.kernel.org/stable/c/5db6ef9847717329f12c5ea8aba7e9f588a980c0