CVE-2023-52989

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

State
Published
Severity
5.5 Medium
Published
Mar 27, 2025
Updated
May 11, 2026
Reserved
Mar 27, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 281e20323ab72180137824a298ee9e21e6f9acf6 to before b2cd3947d116bb9ba7ff097b5fc747a8956764dbAffected
  • 281e20323ab72180137824a298ee9e21e6f9acf6 to before 356ff89acdbe6a66019154bc7eb2d300f5b15103Affected
  • 281e20323ab72180137824a298ee9e21e6f9acf6 to before 53785fd9b315583cf029e39f72b73d23704a2253Affected
  • 281e20323ab72180137824a298ee9e21e6f9acf6 to before d5a2dcee53fa6e6e2822f93cb3f1b0cd23163beeAffected
  • 281e20323ab72180137824a298ee9e21e6f9acf6 to before 5f4543c9382ae2d5062f6aa4fecae0c9258d0b0eAffected
  • 281e20323ab72180137824a298ee9e21e6f9acf6 to before c8bdc88216f09cb7387fedbdf613524367328616Affected
  • 281e20323ab72180137824a298ee9e21e6f9acf6 to before 531390a243ef47448f8bad01c186c2787666bf4dAffected
LinuxLinux
  • 2.6.33Affected
  • before 2.6.33Not affected
  • 4.14.306 through 4.14.*Not affected
  • 4.19.273 through 4.19.*Not affected
  • 5.4.232 through 5.4.*Not affected
  • 5.10.168 through 5.10.*Not affected
  • 5.15.93 through 5.15.*Not affected
  • 6.1.11 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.