ksmbd: fix reference count leak in smb_check_perm_dacl()
Published Feb 26, 2025
5.5
MEDIUMCVSS 3.1
EPSS 0.26%
Description
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
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.15StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<5.15
- Version 5.15.47StatusunaffectedConstraints<=5.15.*
- Version 5.17.15StatusunaffectedConstraints<=5.17.*
- Version 5.18.4StatusunaffectedConstraints<=5.18.*
- Version 5.19StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 5.15 · < 5.15.47
- ≥ 5.16 · < 5.17.15
- ≥ 5.18 · < 5.18.4
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Oct 1, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2025–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (4 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.26% (0.00261) | 16.26th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.24% (0.00240) | 14.80th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.03% (0.00026) | 4.39th | v4 (v2025.03.14) |
| Feb 27, 2025 | 0.04% (0.00045) | 18.25th | v3 (v2023.03.01) |
References (9)
- https://access.redhat.com/security/cve/CVE-2022-49366 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2347875 Issue Tracking
- https://git.kernel.org/stable/c/248d71b440aef829f5cc5f6545ca113ef5062900 Patch
- https://git.kernel.org/stable/c/9758a6653c27867d810de02b4e5697163dda9883 Patch
- https://git.kernel.org/stable/c/cf824b95c12a1abacadbc2d069931963221a3414 Patch
- https://git.kernel.org/stable/c/d21a580dafc69aa04f46e6099616146a536b0724 Patch
- https://lore.kernel.org/linux-cve-announce/2025022645-CVE-2022-49366-d901@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-49366
- https://www.cve.org/CVERecord?id=CVE-2022-49366
Change history (0)
No recorded changes yet.