Skip to contentSkip to conversation

CVE-2024-53164: net: sched: fix ordering of qlen adjustment

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 27, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

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

net: sched: fix ordering of qlen adjustment

Changes to sch->q.qlen around qdisc_tree_reduce_backlog() need to happen _before_ a call to said function because otherwise it may fail to notify parent qdiscs when the child is about to become empty.

The Linux kernel CVE team has assigned CVE-2024-53164 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.1.122 with commit 489422e2befff88a1de52b2acebe7b333bded025
	Fixed in 6.6.68 with commit 97e13434b5da8e91bdf965352fad2141d13d72d3
	Fixed in 6.12.7 with commit e3e54ad9eff8bdaa70f897e5342e34b76109497f
	Fixed in 6.13-rc2 with commit 5eb7de8cd58e73851cd37ff8d0666517d9926948

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2024-53164

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/sched/sch_cake.c
net/sched/sch_choke.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/489422e2befff88a1de52b2acebe7b333bded025
	https://git.kernel.org/stable/c/97e13434b5da8e91bdf965352fad2141d13d72d3
	https://git.kernel.org/stable/c/e3e54ad9eff8bdaa70f897e5342e34b76109497f
	https://git.kernel.org/stable/c/5eb7de8cd58e73851cd37ff8d0666517d9926948