Skip to contentSkip to conversation

CVE-2023-53330: caif: fix memory leak in cfctrl_linkup_request()

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:

caif: fix memory leak in cfctrl_linkup_request()

When linktype is unknown or kzalloc failed in cfctrl_linkup_request(), pkt is not released. Add release process to error path.

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

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

	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 4.14.303 with commit badea57569db04b010e922e29a7aaf40a979a70b
	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 4.19.270 with commit 3acf3783a84cbdf0c9f8cf2f32ee9c49af93a2da
	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 5.4.229 with commit 33df9c5d5e2a18c70f5f5f3c2757d654c1b6ffa3
	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 5.10.163 with commit 84b2cc7b36b7f6957d307fb3d01603f93cb2d655
	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 5.15.87 with commit dc1bc903970bdf63ca40ab923d3ccb765da9a8d9
	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 6.0.19 with commit 1dddeceb26002cfea4c375e92ac6498768dc7349
	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 6.1.5 with commit 3ad47c8aa5648226184415e4a0cb1bf67ffbfd48
	Issue introduced in 2.6.35 with commit b482cd2053e3b90a7b33a78c63cdb6badf2ec383 and fixed in 6.2 with commit fe69230f05897b3de758427b574fc98025dfc907

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

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:
net/caif/cfctrl.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/badea57569db04b010e922e29a7aaf40a979a70b
	https://git.kernel.org/stable/c/3acf3783a84cbdf0c9f8cf2f32ee9c49af93a2da
	https://git.kernel.org/stable/c/33df9c5d5e2a18c70f5f5f3c2757d654c1b6ffa3
	https://git.kernel.org/stable/c/84b2cc7b36b7f6957d307fb3d01603f93cb2d655
	https://git.kernel.org/stable/c/dc1bc903970bdf63ca40ab923d3ccb765da9a8d9
	https://git.kernel.org/stable/c/1dddeceb26002cfea4c375e92ac6498768dc7349
	https://git.kernel.org/stable/c/3ad47c8aa5648226184415e4a0cb1bf67ffbfd48
	https://git.kernel.org/stable/c/fe69230f05897b3de758427b574fc98025dfc907