Skip to contentSkip to conversation

CVE-2026-46193: xfrm: ah: account for ESN high bits in async callbacks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

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

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

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

xfrm: ah: account for ESN high bits in async callbacks

AH allocates its temporary auth/ICV layout differently when ESN is enabled:
the async ahash setup appends a 4-byte seqhi slot before the ICV or auth_data area, but the async completion callbacks still reconstruct the temporary layout as if seqhi were absent.

With an async AH implementation selected, that makes AH copy or compare the wrong bytes on both the IPv4 and IPv6 paths. In UML repro on IPv4 AH with ESN and forced async hmac(sha1), ping fails with 100% packet loss, and the callback logs show the pre-fix drift:

ah4 output_done: esn=1 err=0 icv_off=20 expected_off=24
ah4 input_done: esn=1 auth_off=20 expected_auth_off=24 icv_off=32 expected_icv_off=36

Reconstruct the callback-side layout the same way the setup path built it by skipping the ESN seqhi slot before locating the saved auth_data or ICV. Per RFC 4302, the ESN high-order 32 bits participate in the AH ICV computation, so the async callbacks must account for the seqhi slot.

Post-fix, the same IPv4 AH+ESN+forced-async-hmac(sha1) UML repro shows the corrected offset (ah4 output_done: esn=1 err=0 icv_off=24 expected_off=24) and ping succeeds; net/ipv4/ah4.o and net/ipv6/ah6.o build clean at W=1. IPv6 AH+ESN was not exercised at runtime, and the change has not been tested against a real async hardware AH engine.

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

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

	Issue introduced in 3.15 with commit d4d573d0334d07341beffdcf97e2b85d3955d8ae and fixed in 6.6.140 with commit 0555d4f526232b3c9e3afbcd490c0c0793aefec6
	Issue introduced in 3.15 with commit d4d573d0334d07341beffdcf97e2b85d3955d8ae and fixed in 6.12.88 with commit 729899a2aa8bda7844be0cdcd3b470f11b912eda
	Issue introduced in 3.15 with commit d4d573d0334d07341beffdcf97e2b85d3955d8ae and fixed in 6.18.30 with commit 7db99a09b3bc87268287bc7ab5f2e7f382b5ad87
	Issue introduced in 3.15 with commit d4d573d0334d07341beffdcf97e2b85d3955d8ae and fixed in 7.0.7 with commit 2ffaa7a94f9a4d22724364a1821735a0231d9f8d
	Issue introduced in 3.15 with commit d4d573d0334d07341beffdcf97e2b85d3955d8ae and fixed in 7.1-rc3 with commit ec54093e6a8f87e800bb6aa15eb7fc1e33faa524

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

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:

	net/ipv4/ah4.c
	net/ipv6/ah6.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/0555d4f526232b3c9e3afbcd490c0c0793aefec6
	https://git.kernel.org/stable/c/729899a2aa8bda7844be0cdcd3b470f11b912eda
	https://git.kernel.org/stable/c/7db99a09b3bc87268287bc7ab5f2e7f382b5ad87
	https://git.kernel.org/stable/c/2ffaa7a94f9a4d22724364a1821735a0231d9f8d
	https://git.kernel.org/stable/c/ec54093e6a8f87e800bb6aa15eb7fc1e33faa524