netfilter: nf_conntrack_h323: lost .data_len definition for Q.931/ipv6
Subsystems (3)
PATCH 1/1 netfilter: nf_conntrack_h323: lost .data_len definition for Q.931/ipv6
Could you please push this patch into stable@? it fixes memory corruption in kernels v3.5 .. v4.10
Lost .data_len definition leads to write beyond end of struct nf_ct_h323_master. Usually it corrupts following struct nf_conn_nat, however if nat is not loaded it corrupts following slab object.
In mainline this problem went away in v4.11,
after commit 9f0f3ebeda47 ("netfilter: helpers: remove data_len usage for inkernel helpers") however many stable kernels are still affected.
--- net/netfilter/nf_conntrack_h323_main.c | 1 + 1 file changed, 1 insertion(+)
net/netfilter/nf_conntrack_h323_main.c +1 -0
@@ -1225,6 +1225,7 @@ static struct nf_conntrack_helper nf_conntrack_helper_q931[] __read_mostly = { { .name = "Q.931", .me = THIS_MODULE, + .data_len = sizeof(struct nf_ct_h323_master), .tuple.src.l3num = AF_INET6, .tuple.src.u.tcp.port = cpu_to_be16(Q931_PORT), .tuple.dst.protonum = IPPROTO_TCP,
Signature · 1 line
2.17.1
Quoted 8 lines · Vasily Averin
Could you please push this patch into stable@? it fixes memory corruption in kernels v3.5 .. v4.10
Lost .data_len definition leads to write beyond end of struct
nf_ct_h323_master. Usually it corrupts following structnf_conn_nat, however if nat is not loaded it corrupts following slab object.
Quoted 7 lines
In mainline this problem went away in v4.11,
after commit9f0f3ebeda47("netfilter: helpers: removedata_lenusage for inkernel helpers") however many stable kernels are still affected.Fixes 1afc56794e03 ("netfilter: nf_ct_helper: implement variable length helper private data") # v3.5Signed-off-by Vasily Averin <[email protected]>
Pablo Neira Ayuso
maintainerCC'ing [email protected]
Quoted 11 lines · Vasily Averin
Could you please push this patch into stable@? it fixes memory corruption in kernels v3.5 .. v4.10
Lost .data_len definition leads to write beyond end of struct
nf_ct_h323_master. Usually it corrupts following structnf_conn_nat, however if nat is not loaded it corrupts following slab object.In mainline this problem went away in v4.11,
after commit9f0f3ebeda47("netfilter: helpers: removedata_lenusage for inkernel helpers") however many stable kernels are still affected.
-stable maintainers of: 3.16, 4.4 and 4.9.
Please apply this patch, thanks.
Quoted 22 lines
Fixes 1afc56794e03 ("netfilter: nf_ct_helper: implement variable length helper private data") # v3.5Signed-off-by Vasily Averin <[email protected]>--- net/netfilter/nf_conntrack_h323_main.c | 1 + 1 file changed, 1 insertion(+)net/netfilter/nf_conntrack_h323_main.c +1
-0@@ -1225,6 +1225,7 @@ static struct nf_conntrack_helper nf_conntrack_helper_q931[] __read_mostly = { { .name = "Q.931", .me = THIS_MODULE, + .data_len = sizeof(struct nf_ct_h323_master), .tuple.src.l3num = AF_INET6, .tuple.src.u.tcp.port = cpu_to_be16(Q931_PORT), .tuple.dst.protonum = IPPROTO_TCP,Signature · 1 line
2.17.1
Quoted 11 lines · Pablo Neira Ayuso
CC'ing [email protected]
Quoted 8 lines · Vasily Averin
Could you please push this patch into stable@? it fixes memory corruption in kernels v3.5 .. v4.10
Lost .data_len definition leads to write beyond end of struct
nf_ct_h323_master. Usually it corrupts following structnf_conn_nat, however if nat is not loaded it corrupts following slab object.
Quoted 7 lines
Quoted 3 lines
In mainline this problem went away in v4.11,
after commit9f0f3ebeda47("netfilter: helpers: removedata_lenusage for inkernel helpers") however many stable kernels are still affected.-stable maintainers of: 3.16, 4.4 and 4.9.
Please apply this patch, thanks.
It fixes CVE-2020-14305
https://access.redhat.com/security/cve/CVE-2020-14305
Quoted 22 lines
Quoted 22 lines
Fixes 1afc56794e03 ("netfilter: nf_ct_helper: implement variable length helper private data") # v3.5Signed-off-by Vasily Averin <[email protected]>--- net/netfilter/nf_conntrack_h323_main.c | 1 + 1 file changed, 1 insertion(+)net/netfilter/nf_conntrack_h323_main.c +1
-0@@ -1225,6 +1225,7 @@ static struct nf_conntrack_helper nf_conntrack_helper_q931[] __read_mostly = { { .name = "Q.931", .me = THIS_MODULE, + .data_len = sizeof(struct nf_ct_h323_master), .tuple.src.l3num = AF_INET6, .tuple.src.u.tcp.port = cpu_to_be16(Q931_PORT), .tuple.dst.protonum = IPPROTO_TCP,Signature · 1 line
2.17.1
Quoted 11 lines · Pablo Neira Ayuso
CC'ing [email protected]
Quoted 8 lines · Vasily Averin
Could you please push this patch into stable@? it fixes memory corruption in kernels v3.5 .. v4.10
Lost .data_len definition leads to write beyond end of struct
nf_ct_h323_master. Usually it corrupts following structnf_conn_nat, however if nat is not loaded it corrupts following slab object.
Quoted 5 lines
Quoted 3 lines
In mainline this problem went away in v4.11,
after commit9f0f3ebeda47("netfilter: helpers: removedata_lenusage for inkernel helpers") however many stable kernels are still affected.-stable maintainers of: 3.16, 4.4 and 4.9.
Now queued up to 4.4 and 4.9, thanks. 3.16 is end-of-life.
greg k-h