HIGH
netfilter H323Decoder OOB
CVE-2026-43233
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
KernelScan AI7.9HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack_h323: fix OOB read in decode_choice() In decode_choice(), the boundary check before get_len() uses the variable `len`, which is still 0 from its initialization at the top of the function: unsigned int type, ext, len = 0; ... if (ext || (son->attr & OPEN)) { BYTE_ALIGN(bs); if (nf_h323_error_boundary(bs, len, 0)) /* len is 0 here */ return H323_ERROR_BOUND; len = get_len(bs); /* OOB read */ When the bitstream is exactly consumed (bs->cur == bs->end), the check nf_h323_error_boundary(bs, 0, 0) evaluates to (bs->cur + 0 > bs->end), which is false. The subsequent get_len() call then dereferences *bs->cur++, reading 1 byte past the end of the buffer. If that byte has bit 7 set, get_len() reads a second byte as well. This can be triggered remotely by sending a crafted Q.931 SETUP message with a User-User Information Element containing exactly 2 bytes of PER-encoded data ({0x08, 0x00}) to port 1720 through a firewall with the nf_conntrack_h323 helper active. The decoder fully consumes the PER buffer before reaching this code path, resulting in a 1-2 byte heap-buffer-overflow read confirmed by AddressSanitizer. Fix this by checking for 2 bytes (the maximum that get_len() may read) instead of the uninitialized `len`. This matches the pattern used at every other get_len() call site in the same file, where the caller checks for 2 bytes of available data before calling get_len().
02KernelScan AI Analysis
Risk summary
Remote attackers can trigger a 1-2 byte out-of-bounds read in the netfilter H.323 connection tracking helper by sending crafted Q.931 SETUP messages to port 1720. This can cause kernel crashes and limited information disclosure on systems with H.323 connection tracking enabled.
Vulnerability analysis
The vulnerability occurs in decode_choice() where a boundary check uses an uninitialized variable (len=0) instead of checking for the actual bytes needed by get_len(). When the bitstream is exactly consumed, the insufficient boundary check allows get_len() to read 1-2 bytes past the buffer end. The fix ensures 2 bytes are available before calling get_len(), matching the pattern used elsewhere in the code. This is remotely exploitable via crafted H.323 packets without requiring authentication.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 5.10 | 5.10.252 | bcb50aa0b8f2 |
| 5.15 | 5.15.202 | 2a3aac4205e7 |
| 6.1 | 6.1.165 | 81f2fc5b0d0c |
| 6.12 | 6.12.75 | 53d32735d77a |
| 6.18 | 6.18.16 | f0a83d0a4b7c |
| 6.19 | 6.19.6 | 35f1943d242e |
| 6.6 | 6.6.128 | 7ef82863d422 |
| mainline | 7.0 | baed0d9ba91d |