Skip to contentSkip to conversation

CVE-2026-23060: crypto: authencesn - reject too-short AAD (assoclen<8) to match ESP/ESN spec

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 4

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 too-short AAD (assoclen<8) to match ESP/ESN spec

authencesn assumes an ESP/ESN-formatted AAD. When assoclen is shorter than the minimum expected length, crypto_authenc_esn_decrypt() can advance past the end of the destination scatterlist and trigger a NULL pointer dereference in scatterwalk_map_and_copy(), leading to a kernel panic (DoS).

Add a minimum AAD length check to fail fast on invalid inputs.

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

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

	Issue introduced in 4.3 with commit 104880a6b470958ddc30e139c41aa4f6ed3a5234 and fixed in 6.6.122 with commit b0a9609283a5c852addb513dafa655c61eebc1ef
	Issue introduced in 4.3 with commit 104880a6b470958ddc30e139c41aa4f6ed3a5234 and fixed in 6.12.68 with commit 161bdc90fce25bd9890adc67fa1c8563a7acbf40
	Issue introduced in 4.3 with commit 104880a6b470958ddc30e139c41aa4f6ed3a5234 and fixed in 6.18.8 with commit 9532ff0d0e90ff78a214299f594ab9bac81defe4
	Issue introduced in 4.3 with commit 104880a6b470958ddc30e139c41aa4f6ed3a5234 and fixed in 6.19-rc7 with commit 2397e9264676be7794f8f7f1e9763d90bd3c7335

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

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/b0a9609283a5c852addb513dafa655c61eebc1ef
	https://git.kernel.org/stable/c/161bdc90fce25bd9890adc67fa1c8563a7acbf40
	https://git.kernel.org/stable/c/9532ff0d0e90ff78a214299f594ab9bac81defe4
	https://git.kernel.org/stable/c/2397e9264676be7794f8f7f1e9763d90bd3c7335