Skip to content
Heist/ feed
High

enic: Validate length of nl attributes in enic_set_vf_port

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2024-38659

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-38659

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "2b649d7e0cb42a660f0260ef25fd55fdc9c6c600",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "3c0d36972edbe56fcf98899622d9b90ac9965227",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "25571a12fbc8a1283bd8380d461267956fd426f7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "7077c22f84f41974a711604a42fd0e0684232ee5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "f6638e955ca00c489894789492776842e102af9c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "aee1955a1509a921c05c70dad5d6fc8563dfcb31",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f8bd909183acffad68780b10c1cdf36161cfd5d1",
        "lessThan": "e8021b94b0412c37bcc79027c2e382086b6ce449",
        "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": "semver"
      },
      {
        "status": "unaffected",
        "version": "4.19.316",
        "versionType": "semver",
        "lessThanOrEqual": "4.19.*"
      },
      {
        "status": "unaffected",
        "version": "5.4.278",
        "versionType": "semver",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.219",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.161",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.93",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.33",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.9.4",
        "versionType": "semver",
        "lessThanOrEqual": "6.9.*"
      },
      {
        "status": "unaffected",
        "version": "6.10",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/cisco/enic/enic_main.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-38659

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#26623 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement