Skip to contentSkip to conversation

CVE-2024-56716: netdevsim: prevent bad user input in nsim_dev_health_break_write()

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

lore
Share & tools
lore
#0 lore raw

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

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

netdevsim: prevent bad user input in nsim_dev_health_break_write()

If either a zero count or a large one is provided, kernel can crash.

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

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

	Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.1.122 with commit d10321be26ff9e9e912697e9e8448099654ff561
	Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.6.68 with commit 470c5ecbac2f19b1cdee2a6ce8d5650c3295c94b
	Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.12.7 with commit 8e9ef6bdf71bf25f4735e0230ce1919de8985835
	Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.13-rc4 with commit ee76746387f6233bdfa93d7406990f923641568f

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-56716

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:
drivers/net/netdevsim/health.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/d10321be26ff9e9e912697e9e8448099654ff561
	https://git.kernel.org/stable/c/470c5ecbac2f19b1cdee2a6ce8d5650c3295c94b
	https://git.kernel.org/stable/c/8e9ef6bdf71bf25f4735e0230ce1919de8985835
	https://git.kernel.org/stable/c/ee76746387f6233bdfa93d7406990f923641568f