Lucene search

K
cvelistLinuxCVELIST:CVE-2024-36017
HistoryMay 30, 2024 - 12:52 p.m.

CVE-2024-36017 rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation

2024-05-3012:52:03
Linux
www.cve.org
1
linux kernel
rtnetlink
attribute validation

7.4 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.0%

In the Linux kernel, the following vulnerability has been resolved:

rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation

Each attribute inside a nested IFLA_VF_VLAN_LIST is assumed to be a
struct ifla_vf_vlan_info so the size of such attribute needs to be at least
of sizeof(struct ifla_vf_vlan_info) which is 14 bytes.
The current size validation in do_setvfinfo is against NLA_HDRLEN (4 bytes)
which is less than sizeof(struct ifla_vf_vlan_info) so this validation
is not enough and a too small attribute might be cast to a
struct ifla_vf_vlan_info, this might result in an out of bands
read access when accessing the saved (casted) entry in ivvl.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/core/rtnetlink.c"
    ],
    "versions": [
      {
        "version": "79aab093a0b5",
        "lessThan": "8ac69ff2d0d5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "79aab093a0b5",
        "lessThan": "5e7ef2d88666",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "79aab093a0b5",
        "lessThan": "6c8f44b02500",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "79aab093a0b5",
        "lessThan": "f3c1bf3054f9",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "79aab093a0b5",
        "lessThan": "6e4c7193954f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "79aab093a0b5",
        "lessThan": "206003c748b8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "79aab093a0b5",
        "lessThan": "4a4b9757789a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "79aab093a0b5",
        "lessThan": "1aec77b2bb2e",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/core/rtnetlink.c"
    ],
    "versions": [
      {
        "version": "4.9",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.9",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.314",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.276",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.217",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.159",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.91",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.31",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.10",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.4 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.0%