Skip to contentSkip to conversation

CVE-2026-23455: netfilter: nf_conntrack_h323: check for zero length in DecodeQ931()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 3

lore
Share & tools
lore
#0 lore raw

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

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

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

netfilter: nf_conntrack_h323: check for zero length in DecodeQ931()

In DecodeQ931(), the UserUserIE code path reads a 16-bit length from the packet, then decrements it by 1 to skip the protocol discriminator byte before passing it to DecodeH323_UserInformation(). If the encoded length is 0, the decrement wraps to -1, which is then passed as a large value to the decoder, leading to an out-of-bounds read.

Add a check to ensure len is positive after the decrement.

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

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

	Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.1.167 with commit 495e97af9e7249ee02b72bb1d0848a6efc3700f4
	Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.6.130 with commit f5e4f4e4cdb75ec36802059a94195a31f193da60
	Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.12.78 with commit 633e8f87dad32263f6a57dccdb873f042c062111
	Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.18.20 with commit 9d00fe7d6d7c5b5f1065a6e042b54f2e44bd6df8
	Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.19.10 with commit b652b05d51003ac074b912684f9ec7486231717b
	Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 7.0-rc5 with commit f173d0f4c0f689173f8cdac79991043a4a89bf66

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

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/netfilter/nf_conntrack_h323_asn1.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/495e97af9e7249ee02b72bb1d0848a6efc3700f4
	https://git.kernel.org/stable/c/f5e4f4e4cdb75ec36802059a94195a31f193da60
	https://git.kernel.org/stable/c/633e8f87dad32263f6a57dccdb873f042c062111
	https://git.kernel.org/stable/c/9d00fe7d6d7c5b5f1065a6e042b54f2e44bd6df8
	https://git.kernel.org/stable/c/b652b05d51003ac074b912684f9ec7486231717b
	https://git.kernel.org/stable/c/f173d0f4c0f689173f8cdac79991043a4a89bf66