Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-36974

net/sched: taprio: always validate TCA_TAPRIO_ATTR_PRIOMAP

Description

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • a3d43c0d56f1b94e74963a2fbadfb70126d92213 to < c6041e7124464ce7e896ee3f912897ce88a0c4ecaffected
  • a3d43c0d56f1b94e74963a2fbadfb70126d92213 to < 6db4af09987cc5d5f0136bd46148b0e0460dae5baffected
  • a3d43c0d56f1b94e74963a2fbadfb70126d92213 to < d3dde4c217f0c31ab0621912e682b57e677dd923affected
  • a3d43c0d56f1b94e74963a2fbadfb70126d92213 to < 0bf6cc96612bd396048f57d63f1ad454a846e39caffected
  • a3d43c0d56f1b94e74963a2fbadfb70126d92213 to < 724050ae4b76e4fae05a923cb54101d792cf4404affected
  • a3d43c0d56f1b94e74963a2fbadfb70126d92213 to < c37a27a35eadb59286c9092c49c241270c802ae2affected
  • a3d43c0d56f1b94e74963a2fbadfb70126d92213 to < f921a58ae20852d188f70842431ce6519c4fdc36affected

Linux Linux

Default version status: affected

  • 5.2affected
  • 0 to < 5.2unaffected
  • 5.4.279 to ≤ 5.4.*unaffected
  • 5.10.221 to ≤ 5.10.*unaffected
  • 5.15.162 to ≤ 5.15.*unaffected
  • 6.1.95 to ≤ 6.1.*unaffected
  • 6.6.35 to ≤ 6.6.*unaffected
  • 6.9.6 to ≤ 6.9.*unaffected
  • 6.10 to ≤ *unaffected

References