Skip to content

Commit 7f25d81

Browse files
committed
Merge: rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4518 JIRA: https://issues.redhat.com/browse/RHEL-39715 CVE: CVE-2024-36017 Upstream Status: all mainline in net.git Tested: boot-tested only Conflicts: None Signed-off-by: Davide Caratti <dcaratti@redhat.com> Approved-by: Sabrina Dubroca <sdubroca@redhat.com> Approved-by: Hangbin Liu <haliu@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents c7477b0 + 1809a32 commit 7f25d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/rtnetlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,7 @@ static int do_setvfinfo(struct net_device *dev, struct nlattr **tb)
25672567

25682568
nla_for_each_nested(attr, tb[IFLA_VF_VLAN_LIST], rem) {
25692569
if (nla_type(attr) != IFLA_VF_VLAN_INFO ||
2570-
nla_len(attr) < NLA_HDRLEN) {
2570+
nla_len(attr) < sizeof(struct ifla_vf_vlan_info)) {
25712571
return -EINVAL;
25722572
}
25732573
if (len >= MAX_VLAN_LIST_LEN)

0 commit comments

Comments
 (0)