CVE-2022-49366 Details
Description
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".
A reference count leak vulnerability has been identified in the Linux kernel's ksmbd component, specifically within the smb_check_perm_dacl() function. The issue arises when the 'id' and 'uid' values are identical, causing the function to exit the loop without properly decrementing the reference count of the 'posix_acls' object. This object’s reference count is initially increased by the get_acl() function, leading to potential memory leaks. The vulnerability has been addressed by ensuring the reference count of 'posix_acls' is decreased before the function exits the loop.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/248d71b440aef829f5cc5f6545ca113ef5062900 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9758a6653c27867d810de02b4e5697163dda9883 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cf824b95c12a1abacadbc2d069931963221a3414 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d21a580dafc69aa04f46e6099616146a536b0724 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 5.15.47 >= 5.16, < 5.17.15 >= 5.18, < 5.18.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Apr 14, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |