netfilter: nf_conntrack_h323: check for zero length in DecodeQ931()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5e35941d990123f155b02d5663e51a24f816b6f3 · < 9d00fe7d6d7c5b5f1065a6e042b54f2e44bd6df8| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s nf_conntrack_h323 DecodeQ931() path can read beyond packet bounds when a packet encodes a zero-length UserUserIE field. The issue occurs during packet processing; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with nf_conntrack_h323 should check their versions; affected versions are not specified.