Skip to contentSkip to conversation

CVE-2025-37758: ata: pata_pxa: Fix potential NULL pointer dereference in pxa_ata_probe()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1, 2025

lore
Share & tools
lore
#0 lore raw

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

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

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

ata: pata_pxa: Fix potential NULL pointer dereference in pxa_ata_probe()

devm_ioremap() returns NULL on error. Currently, pxa_ata_probe() does not check for this case, which can result in a NULL pointer dereference.

Add NULL check after devm_ioremap() to prevent this issue.

The Linux kernel CVE team has assigned CVE-2025-37758 to this issue.

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

	Issue introduced in 2.6.36 with commit 2dc6c6f15da97cb3e810963c80e981f19d42cd7d and fixed in 6.1.135 with commit 2dc53c7a0c1f57b082931facafa804a7ca32a9a6
	Issue introduced in 2.6.36 with commit 2dc6c6f15da97cb3e810963c80e981f19d42cd7d and fixed in 6.6.88 with commit 5b09bf6243b0bc0ae58bd9efdf6f0de5546f8d06
	Issue introduced in 2.6.36 with commit 2dc6c6f15da97cb3e810963c80e981f19d42cd7d and fixed in 6.12.24 with commit ee2b0301d6bfe16b35d57947687c664ecb815775
	Issue introduced in 2.6.36 with commit 2dc6c6f15da97cb3e810963c80e981f19d42cd7d and fixed in 6.13.12 with commit c022287f6e599422511aa227dc6da37b58d9ceac
	Issue introduced in 2.6.36 with commit 2dc6c6f15da97cb3e810963c80e981f19d42cd7d and fixed in 6.14.3 with commit 2ba9e4c69207777bb0775c7c091800ecd69de144
	Issue introduced in 2.6.36 with commit 2dc6c6f15da97cb3e810963c80e981f19d42cd7d and fixed in 6.15-rc2 with commit ad320e408a8c95a282ab9c05cdf0c9b95e317985

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-2025-37758

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/ata/pata_pxa.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/2dc53c7a0c1f57b082931facafa804a7ca32a9a6
	https://git.kernel.org/stable/c/5b09bf6243b0bc0ae58bd9efdf6f0de5546f8d06
	https://git.kernel.org/stable/c/ee2b0301d6bfe16b35d57947687c664ecb815775
	https://git.kernel.org/stable/c/c022287f6e599422511aa227dc6da37b58d9ceac
	https://git.kernel.org/stable/c/2ba9e4c69207777bb0775c7c091800ecd69de144
	https://git.kernel.org/stable/c/ad320e408a8c95a282ab9c05cdf0c9b95e317985