Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2024-36974
HistoryJun 18, 2024 - 8:15 p.m.

CVE-2024-36974

2024-06-1820:15:13
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
27
linux kernel
net/sched
taprio
vulnerability
validation
userspace
arbitrary data
injection
cve-2024-36974

AI Score

6.6

Confidence

High

EPSS

0

Percentile

10.5%

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

net/sched: taprio: always validate TCA_TAPRIO_ATTR_PRIOMAP

If one TCA_TAPRIO_ATTR_PRIOMAP attribute has been provided,
taprio_parse_mqprio_opt() must validate it, or userspace
can inject arbitrary data to the kernel, the second time
taprio_change() is called.

First call (with valid attributes) sets dev->num_tc
to a non zero value.

Second call (with arbitrary mqprio attributes)
returns early from taprio_parse_mqprio_opt()
and bad things can happen.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.25.4.279
OR
linuxlinux_kernelRange5.5.05.10.221
OR
linuxlinux_kernelRange5.11.05.15.162
OR
linuxlinux_kernelRange5.16.06.1.95
OR
linuxlinux_kernelRange6.2.06.6.35
OR
linuxlinux_kernelRange6.7.06.9.6
OR
linuxlinux_kernelRange6.10.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/sched/sch_taprio.c"
    ],
    "versions": [
      {
        "version": "a3d43c0d56f1",
        "lessThan": "c6041e712446",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a3d43c0d56f1",
        "lessThan": "6db4af09987c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a3d43c0d56f1",
        "lessThan": "d3dde4c217f0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a3d43c0d56f1",
        "lessThan": "0bf6cc96612b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a3d43c0d56f1",
        "lessThan": "724050ae4b76",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a3d43c0d56f1",
        "lessThan": "c37a27a35ead",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a3d43c0d56f1",
        "lessThan": "f921a58ae208",
        "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/sched/sch_taprio.c"
    ],
    "versions": [
      {
        "version": "5.2",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.2",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.279",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.221",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.162",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.95",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.35",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.6",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.6

Confidence

High

EPSS

0

Percentile

10.5%