Bug 2347875 (CVE-2022-49366) - CVE-2022-49366 kernel: ksmbd: fix reference count leak in smb_check_perm_dacl()
Summary: CVE-2022-49366 kernel: ksmbd: fix reference count leak in smb_check_perm_dacl()
Keywords:
Status: NEW
Alias: CVE-2022-49366
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:09 UTC by OSIDB Bzimport
Modified: 2025-02-26 15:35 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:09:48 UTC
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix reference count leak in smb_check_perm_dacl()

The issue happens in a specific path in smb_check_perm_dacl(). When
"id" and "uid" have the same value, the function simply jumps out of
the loop without decrementing the reference count of the object
"posix_acls", which is increased by get_acl() earlier. This may
result in memory leaks.

Fix it by decreasing the reference count of "posix_acls" before
jumping to label "check_access_bits".

Comment 1 Avinash Hanwate 2025-02-26 11:07:30 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022645-CVE-2022-49366-d901@gregkh/T

Comment 2 Avinash Hanwate 2025-02-26 15:32:57 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022645-CVE-2022-49366-d901@gregkh/T


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