CVE-2022-49366
published medium CVSS 3.1 · 5.5ksmbd: fix reference count leak in smb_check_perm_dacl()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < cf824b95c12a1abacadbc2d069931963221a3414 · 777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < 248d71b440aef829f5cc5f6545ca113ef5062900 · 777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < 9758a6653c27867d810de02b4e5697163dda9883 · 777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < d21a580dafc69aa04f46e6099616146a536b0724 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.47 through 5.15.* (unaffected · semver) · 5.17.15 through 5.17.* (unaffected · semver) · 5.18.4 through 5.18.* (unaffected · semver) · 5.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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".
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < cf824b95c12a1abacadbc2d069931963221a3414 (affected · git)777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < 248d71b440aef829f5cc5f6545ca113ef5062900 (affected · git)777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < 9758a6653c27867d810de02b4e5697163dda9883 (affected · git)777cad1604d68ed4379ec899d1f7d2f6a29f01f0 to < d21a580dafc69aa04f46e6099616146a536b0724 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.47 through 5.15.* (unaffected · semver)5.17.15 through 5.17.* (unaffected · semver)5.18.4 through 5.18.* (unaffected · semver)5.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
4Provider assertions
2Linux · cna
ksmbd: fix reference count leak in smb_check_perm_dacl()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6038e17c9a6b778e9cb84da1e6ba055476613268a243b844f86d145eed07c979
- Ingested
- 23 Sep 2026, 08:04:12 UTC
- Source record
- Official CVE record