CVE-2026-23456: netfilter: nf_conntrack_h323: fix OOB read in decode_int() CONS case
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conntrack_h323: fix OOB read in decode_int() CONS case
In decode_int(), the CONS case calls get_bits(bs, 2) to read a length value, then calls get_uint(bs, len) without checking that len bytes remain in the buffer. The existing boundary check only validates the 2 bits for get_bits(), not the subsequent 1-4 bytes that get_uint() reads. This allows a malformed H.323/RAS packet to cause a 1-4 byte slab-out-of-bounds read.
Add a boundary check for len bytes after get_bits() and before get_uint().
The Linux kernel CVE team has assigned CVE-2026-23456 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.1.167 with commit 41b417ff73a24b2c68134992cc44c88db27f482d Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.6.130 with commit 52235bf88159a1ef16434ab49e47e99c8a09ab20 Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.12.78 with commit 774a434f8c9c8602a976b2536f65d0172a07f4d2 Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.18.20 with commit 6bce72daeccca9aa1746e92d6c3d4784e71f2ebb Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 6.19.10 with commit fb6c3596823ec5dd09c2123340330d7448f51a59 Issue introduced in 2.6.17 with commit 5e35941d990123f155b02d5663e51a24f816b6f3 and fixed in 7.0-rc5 with commit 1e3a3593162c96e8a8de48b1e14f60c3b57fca8a
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-23456
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/41b417ff73a24b2c68134992cc44c88db27f482d https://git.kernel.org/stable/c/52235bf88159a1ef16434ab49e47e99c8a09ab20 https://git.kernel.org/stable/c/774a434f8c9c8602a976b2536f65d0172a07f4d2 https://git.kernel.org/stable/c/6bce72daeccca9aa1746e92d6c3d4784e71f2ebb https://git.kernel.org/stable/c/fb6c3596823ec5dd09c2123340330d7448f51a59 https://git.kernel.org/stable/c/1e3a3593162c96e8a8de48b1e14f60c3b57fca8a