Vulnerabilities · 2022 · Linux
CVE-2022-49366
Linux Kernel vulnerability
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".
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/248d71b440aef829f5cc5f6545ca113ef5062900 · Patch
- git.kernel.org/stable/c/9758a6653c27867d810de02b4e5697163dda9883 · Patch
- git.kernel.org/stable/c/cf824b95c12a1abacadbc2d069931963221a3414 · Patch
- git.kernel.org/stable/c/d21a580dafc69aa04f46e6099616146a536b0724 · Patch
- nvd.nist.gov/vuln/detail/CVE-2022-49366
- cve.org/CVERecord?id=CVE-2022-49366
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.