Skip to contentSkip to conversation

CVE-2023-53267: driver: soc: xilinx: fix memory leak in xlnx_add_cb_for_notify_event()

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

driver: soc: xilinx: fix memory leak in xlnx_add_cb_for_notify_event()

The kfree() should be called when memory fails to be allocated for cb_data in xlnx_add_cb_for_notify_event(), otherwise there will be a memory leak, so add kfree() to fix it.

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

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

	Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.1.18 with commit d35290addcbac94b076babe0a798a8c043421812
	Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.2.5 with commit 9dfb6c784e385f6e61994bb4e16ce12f3e4940be
	Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.3 with commit 1bea534991b9b35c41848a397666ada436456beb

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

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/soc/xilinx/xlnx_event_manager.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/d35290addcbac94b076babe0a798a8c043421812
	https://git.kernel.org/stable/c/9dfb6c784e385f6e61994bb4e16ce12f3e4940be
	https://git.kernel.org/stable/c/1bea534991b9b35c41848a397666ada436456beb