Skip to contentSkip to conversation

CVE-2024-56622: scsi: ufs: core: sysfs: Prevent div by zero

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:

scsi: ufs: core: sysfs: Prevent div by zero

Prevent a division by 0 when monitoring is not enabled.

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

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

	Issue introduced in 5.14 with commit 1d8613a23f3c3b8f0101e453ff150e05a0d1cd4f and fixed in 5.15.174 with commit 87bf3ea841a5d77beae6bb85af36b2b3848407ee
	Issue introduced in 5.14 with commit 1d8613a23f3c3b8f0101e453ff150e05a0d1cd4f and fixed in 6.1.120 with commit 7b21233e5f72d10f08310689f993c1dbdfde9f2c
	Issue introduced in 5.14 with commit 1d8613a23f3c3b8f0101e453ff150e05a0d1cd4f and fixed in 6.6.66 with commit 0069928727c2e95ca26c738fbe6e4b241aeaaf08
	Issue introduced in 5.14 with commit 1d8613a23f3c3b8f0101e453ff150e05a0d1cd4f and fixed in 6.12.5 with commit 9c191055c7abea4912fdb83cb9b261732b25a0c8
	Issue introduced in 5.14 with commit 1d8613a23f3c3b8f0101e453ff150e05a0d1cd4f and fixed in 6.13-rc2 with commit eb48e9fc0028bed94a40a9352d065909f19e333c

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

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/ufs/core/ufs-sysfs.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/87bf3ea841a5d77beae6bb85af36b2b3848407ee
	https://git.kernel.org/stable/c/7b21233e5f72d10f08310689f993c1dbdfde9f2c
	https://git.kernel.org/stable/c/0069928727c2e95ca26c738fbe6e4b241aeaaf08
	https://git.kernel.org/stable/c/9c191055c7abea4912fdb83cb9b261732b25a0c8
	https://git.kernel.org/stable/c/eb48e9fc0028bed94a40a9352d065909f19e333c