Skip to contentSkip to conversation

CVE-2023-53470: ionic: catch failure from devlink_alloc

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 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:

ionic: catch failure from devlink_alloc

Add a check for NULL on the alloc return. If devlink_alloc() fails and we try to use devlink_priv() on the NULL return, the kernel gets very unhappy and panics. With this fix, the driver load will still fail, but at least it won't panic the kernel.

The Linux kernel CVE team has assigned CVE-2023-53470 to this issue.

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

	Issue introduced in 5.4 with commit df69ba43217d3cf4215c83c0627ce98a26e56e7c and fixed in 5.15.112 with commit c177dd465f5c1e5f242cdb9258826c591c257e9a
	Issue introduced in 5.4 with commit df69ba43217d3cf4215c83c0627ce98a26e56e7c and fixed in 6.1.29 with commit 0d02efe7f25158c93146e3bb827bc7bb3cd5e71a
	Issue introduced in 5.4 with commit df69ba43217d3cf4215c83c0627ce98a26e56e7c and fixed in 6.2.16 with commit 5325f50de5b1433b27dda7ccff5cb7283722a3f1
	Issue introduced in 5.4 with commit df69ba43217d3cf4215c83c0627ce98a26e56e7c and fixed in 6.3.3 with commit 0020c16c8af7f4bc9503a2088fb30793b6771fac
	Issue introduced in 5.4 with commit df69ba43217d3cf4215c83c0627ce98a26e56e7c and fixed in 6.4 with commit 4a54903ff68ddb33b6463c94b4eb37fc584ef760

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-2023-53470

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/ethernet/pensando/ionic/ionic_devlink.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/c177dd465f5c1e5f242cdb9258826c591c257e9a
	https://git.kernel.org/stable/c/0d02efe7f25158c93146e3bb827bc7bb3cd5e71a
	https://git.kernel.org/stable/c/5325f50de5b1433b27dda7ccff5cb7283722a3f1
	https://git.kernel.org/stable/c/0020c16c8af7f4bc9503a2088fb30793b6771fac
	https://git.kernel.org/stable/c/4a54903ff68ddb33b6463c94b4eb37fc584ef760