diff options
| author | Jenny Guanni Qu <qguanni@gmail.com> | 2026-03-12 05:29:32 +0300 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2026-03-13 17:31:15 +0300 |
| commit | 1e3a3593162c96e8a8de48b1e14f60c3b57fca8a (patch) | |
| tree | 4e4182877e6a0ab7fdb286c4ea78612477f1e761 /include | |
| parent | a3aca98aec9a278ee56da4f8013bfa1dd1a1c298 (diff) | |
| download | linux-1e3a3593162c96e8a8de48b1e14f60c3b57fca8a.tar.xz | |
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().
Fixes: 5e35941d9901 ("[NETFILTER]: Add H.323 conntrack/NAT helper")
Reported-by: Klaudia Kloc <klaudia@vidocsecurity.com>
Reported-by: Dawid Moczadło <dawid@vidocsecurity.com>
Signed-off-by: Jenny Guanni Qu <qguanni@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
