CVE-2025-68325

NameCVE-2025-68325
DescriptionIn the Linux kernel, the following vulnerability has been resolved: net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop In cake_drop(), qdisc_tree_reduce_backlog() is used to update the qlen and backlog of the qdisc hierarchy. Its caller, cake_enqueue(), assumes that the parent qdisc will enqueue the current packet. However, this assumption breaks when cake_enqueue() returns NET_XMIT_CN: the parent qdisc stops enqueuing current packet, leaving the tree qlen/backlog accounting inconsistent. This mismatch can lead to a NULL dereference (e.g., when the parent Qdisc is qfq_qdisc). This patch computes the qlen/backlog delta in a more robust way by observing the difference before and after the series of cake_drop() calls, and then compensates the qdisc tree accounting if cake_enqueue() returns NET_XMIT_CN. To ensure correct compensation when ACK thinning is enabled, a new variable is introduced to keep qlen unchanged.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4475-1, DLA-4476-1, DSA-6127-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
linux (PTS)bullseye5.10.223-1vulnerable
bullseye (security)5.10.249-1fixed
bookworm6.1.159-1vulnerable
bookworm (security)6.1.162-1fixed
trixie6.12.63-1fixed
trixie (security)6.12.73-1fixed
forky6.18.9-1fixed
sid6.18.12-1fixed
linux-6.1 (PTS)bullseye (security)6.1.162-1~deb11u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
linuxsourcebullseye5.10.249-1DLA-4475-1
linuxsourcebookworm6.1.162-1DSA-6127-1
linuxsourcetrixie6.12.63-1
linuxsource(unstable)6.17.13-1
linux-6.1sourcebullseye6.1.162-1~deb11u1DLA-4476-1

Notes

https://git.kernel.org/linus/9fefc78f7f02d71810776fdeb119a05a946a27cc (6.19-rc1)

Search for package or bug name: Reporting problems