Skip to content

Commit 80852bc

Browse files
committed
Merge: tcp_metrics: validate source addr length
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4947 JIRA: https://issues.redhat.com/browse/RHEL-52031 Upstream Status: linux.git CVE: CVE-2024-42154 Signed-off-by: Guillaume Nault <gnault@redhat.com> Approved-by: Florian Westphal <fwestpha@redhat.com> Approved-by: Antoine Tenart <atenart@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents bd6607e + a6299da commit 80852bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/tcp_metrics.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ static const struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] =
601601
[TCP_METRICS_ATTR_ADDR_IPV4] = { .type = NLA_U32, },
602602
[TCP_METRICS_ATTR_ADDR_IPV6] = { .type = NLA_BINARY,
603603
.len = sizeof(struct in6_addr), },
604+
[TCP_METRICS_ATTR_SADDR_IPV4] = { .type = NLA_U32, },
604605
/* Following attributes are not received for GET/DEL,
605606
* we keep them for reference
606607
*/

0 commit comments

Comments
 (0)