Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-38659
HistoryJun 21, 2024 - 10:28 a.m.

CVE-2024-38659 enic: Validate length of nl attributes in enic_set_vf_port

2024-06-2110:28:15
Linux
github.com
linux kernel
enic_set_vf_port
attribute length
validation
vulnerability
out of bands access

7 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.1%

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

enic: Validate length of nl attributes in enic_set_vf_port

enic_set_vf_port assumes that the nl attribute IFLA_PORT_PROFILE
is of length PORT_PROFILE_MAX and that the nl attributes
IFLA_PORT_INSTANCE_UUID, IFLA_PORT_HOST_UUID are of length PORT_UUID_MAX.
These attributes are validated (in the function do_setlink in rtnetlink.c)
using the nla_policy ifla_port_policy. The policy defines IFLA_PORT_PROFILE
as NLA_STRING, IFLA_PORT_INSTANCE_UUID as NLA_BINARY and
IFLA_PORT_HOST_UUID as NLA_STRING. That means that the length validation
using the policy is for the max size of the attributes and not on exact
size so the length of these attributes might be less than the sizes that
enic_set_vf_port expects. This might cause an out of bands
read access in the memcpys of the data of these
attributes in enic_set_vf_port.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "2b649d7e0cb4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "ca63fb7af9d3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "3c0d36972edb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "25571a12fbc8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "7077c22f84f4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "f6638e955ca0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "aee1955a1509",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183ac",
        "lessThan": "e8021b94b041",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/cisco/enic/enic_main.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.35"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.35",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "4.19.316",
        "versionType": "custom",
        "lessThanOrEqual": "4.19.*"
      },
      {
        "status": "unaffected",
        "version": "5.4.278",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.219",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.161",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.93",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.33",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.9.4",
        "versionType": "custom",
        "lessThanOrEqual": "6.9.*"
      },
      {
        "status": "unaffected",
        "version": "6.10-rc2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/cisco/enic/enic_main.c"
    ],
    "defaultStatus": "affected"
  }
]

7 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.1%

Related for VULNRICHMENT:CVE-2024-38659