mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 19:07:03 +07:00
netfilter: nf_ct_h323: Out Of Bound Read in Netfilter Conntrack
Add missing counter decrement to prevent out of bounds memory read. Signed-off-by: Eric Sesterhenn <eric.sesterhenn@x41-dsec.de> Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
ce49480dba
commit
e8daf27c2f
@ -877,6 +877,7 @@ int DecodeQ931(unsigned char *buf, size_t sz, Q931 *q931)
|
||||
if (sz < 1)
|
||||
break;
|
||||
len = *p++;
|
||||
sz--;
|
||||
if (sz < len)
|
||||
break;
|
||||
p += len;
|
||||
|
Loading…
Reference in New Issue
Block a user