Bug 1226519 (CVE-2024-36974) - VUL-0: CVE-2024-36974: kernel: net/sched: taprio: always validate TCA_TAPRIO_ATTR_PRIOMAP
Summary: VUL-0: CVE-2024-36974: kernel: net/sched: taprio: always validate TCA_TAPRIO_...
Status: NEW
Alias: CVE-2024-36974
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P2 - High : Major
Target Milestone: ---
Assignee: Davide Benini
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/411236/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-36974:7.8:(AV:...
Keywords:
Depends on:
Blocks: 1227371
  Show dependency treegraph
 
Reported: 2024-06-19 10:00 UTC by SMASH SMASH
Modified: 2024-07-17 12:00 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-19 10:00:18 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-36974
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-36974.mbox
https://git.kernel.org/stable/c/f921a58ae20852d188f70842431ce6519c4fdc36
https://www.cve.org/CVERecord?id=CVE-2024-36974
https://bugzilla.redhat.com/show_bug.cgi?id=2293003