CVE-2023-52989

firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region

Medium · published March 27, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
17.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00262 · 17.0th percentile
Published
2025-03-27T16:43Z
EPSS history
Timeline
  • 27 MAR 16:43Z
    firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region
    cvelistv5