Bug 2348049 (CVE-2022-49729) - CVE-2022-49729 kernel: nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred
Summary: CVE-2022-49729 kernel: nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred
Keywords:
Status: NEW
Alias: CVE-2022-49729
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:15 UTC by OSIDB Bzimport
Modified: 2025-02-27 20:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:15:51 UTC
In the Linux kernel, the following vulnerability has been resolved:

nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred

Similar to the handling of play_deferred in commit 19cfe912c37b
("Bluetooth: btusb: Fix memory leak in play_deferred"), we thought
a patch might be needed here as well.

Currently usb_submit_urb is called directly to submit deferred tx
urbs after unanchor them.

So the usb_giveback_urb_bh would failed to unref it in usb_unanchor_urb
and cause memory leak.

Put those urbs in tx_anchor to avoid the leak, and also fix the error
handling.

Comment 1 Avinash Hanwate 2025-02-26 18:50:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022634-CVE-2022-49729-4536@gregkh/T

Comment 2 Avinash Hanwate 2025-02-27 20:40:45 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022634-CVE-2022-49729-4536@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.