CVE-2024-26653

usb: misc: ljca: Fix double free in error handling path

State
Published
Severity
Not scored
Published
Apr 1, 2024
Updated
May 11, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

usb: misc: ljca: Fix double free in error handling path

When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function ljca_auxdev_release calls kfree(auxdev->dev.platform_data) to free the parameter data of the function ljca_new_client_device. The callers of ljca_new_client_device shouldn't call kfree() again in the error handling path to free the platform data.

Fix this by cleaning up the redundant kfree() in all callers and adding kfree() the passed in platform_data on errors which happen before auxiliary_device_init() succeeds .

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • acd6199f195d6de814ac4090ce0864a613b1580e to before 420babea4f1881a7c4ea22a8e218b8c6895d3f21Affected
  • acd6199f195d6de814ac4090ce0864a613b1580e to before 8a9f653cc852677003c23ee8075e3ed8fb4743c9Affected
  • acd6199f195d6de814ac4090ce0864a613b1580e to before 7c9631969287a5366bc8e39cd5abff154b35fb80Affected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.7.12 through 6.7.*Not affected
  • 6.8.3 through 6.8.*Not affected
  • 6.9 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.