CVE-2023-52989

Source
https://cve.org/CVERecord?id=CVE-2023-52989
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52989.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-52989
Downstream
Related
Published
2025-03-27T16:43:25.684Z
Modified
2026-04-02T09:43:31.836981Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region
Details

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 FWCDEVIOCSENDRESPONSE request, the object is going to be released.

However, it causes memory leak since the commit relies on call of releaserequest() in drivers/firewire/core-cdev.c. Against the expectation, the function is never called due to the design of releaseclientresource(). The function delegates release task to caller when called with non-NULL fourth argument. The implementation of ioctlsend_response() is the case. It should release the object explicitly.

This commit fixes the bug.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52989.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
281e20323ab72180137824a298ee9e21e6f9acf6
Fixed
b2cd3947d116bb9ba7ff097b5fc747a8956764db
Fixed
356ff89acdbe6a66019154bc7eb2d300f5b15103
Fixed
53785fd9b315583cf029e39f72b73d23704a2253
Fixed
d5a2dcee53fa6e6e2822f93cb3f1b0cd23163bee
Fixed
5f4543c9382ae2d5062f6aa4fecae0c9258d0b0e
Fixed
c8bdc88216f09cb7387fedbdf613524367328616
Fixed
531390a243ef47448f8bad01c186c2787666bf4d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52989.json"