CVE-2023-52989

Medium

Description

In the Linux kernel, the following vulnerability has been resolved: firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region This patch is fix for Linux kernel v2.6.33 or later. For request subaction to IEC 61883-1 FCP region, Linux FireWire subsystem have had an issue of use-after-free. The subsystem allows multiple user space listeners to the region, while data of the payload was likely released before the listeners execute read(2) to access to it for copying to user space. The issue was fixed by a commit 281e20323ab7 ("firewire: core: fix use-after-free regression in FCP handler"). The object of payload is duplicated in kernel space for each listener. When the listener executes ioctl(2) with FW_CDEV_IOC_SEND_RESPONSE request, the object is going to be released. However, it causes memory leak since the commit relies on call of release_request() in drivers/firewire/core-cdev.c. Against the expectation, the function is never called due to the design of release_client_resource(). The function delegates release task to caller when called with non-NULL fourth argument. The implementation of ioctl_send_response() is the case. It should release the object explicitly. This commit fixes the bug.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedMar 27, 2025
First seenMar 27, 2025
Weakness typeCWE-401CWE-401

How to fix

Update
  • linux linux_kernel4.14.306, 4.19.273, 5.4.232, 5.10.168, 5.15.93, 6.1.11 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel2.6.33 ≤ v < 4.14.306, 4.15 ≤ v < 4.19.273, 4.20 ≤ v < 5.4.232, 5.5 ≤ v < 5.10.168, 5.11 ≤ v < 5.15.93, 5.16 ≤ v < 6.1.11, 6.24.14.306, 4.19.273, 5.4.232, 5.10.168, 5.15.93, 6.1.11

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.