Skip to contentSkip to conversation

CVE-2026-31420: bridge: mrp: reject zero test interval to avoid OOM panic

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 13

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

bridge: mrp: reject zero test interval to avoid OOM panic

br_mrp_start_test() and br_mrp_start_in_test() accept the user-supplied interval value from netlink without validation. When interval is 0, usecs_to_jiffies(0) yields 0, causing the delayed work (br_mrp_test_work_expired / br_mrp_in_test_work_expired) to reschedule itself with zero delay. This creates a tight loop on system_percpu_wq that allocates and transmits MRP test frames at maximum rate, exhausting all system memory and causing a kernel panic via OOM deadlock.

The same zero-interval issue applies to br_mrp_start_in_test_parse() for interconnect test frames.

Use NLA_POLICY_MIN(NLA_U32, 1) in the nla_policy tables for both IFLA_BRIDGE_MRP_START_TEST_INTERVAL and IFLA_BRIDGE_MRP_START_IN_TEST_INTERVAL, so zero is rejected at the netlink attribute parsing layer before the value ever reaches the workqueue scheduling code. This is consistent with how other bridge subsystems (br_fdb, br_mst) enforce range constraints on netlink attributes.

The Linux kernel CVE team has assigned CVE-2026-31420 to this issue.

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

	Issue introduced in 5.8 with commit 20f6a05ef63594feb0c6dfbd629da0448b43124d and fixed in 6.19.12 with commit c9bc352f716d1bebfe43354bce539ec2d0223b30
	Issue introduced in 5.8 with commit 20f6a05ef63594feb0c6dfbd629da0448b43124d and fixed in 7.0 with commit fa6e24963342de4370e3a3c9af41e38277b74cf3

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-2026-31420

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/bridge/br_mrp_netlink.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/c9bc352f716d1bebfe43354bce539ec2d0223b30
	https://git.kernel.org/stable/c/fa6e24963342de4370e3a3c9af41e38277b74cf3