CVE-2022-49366

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49366
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49366.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49366
Related
Published
2025-02-26T07:01:13Z
Modified
2025-02-26T07:01:13Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix reference count leak in smbcheckperm_dacl()

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

Fix it by decreasing the reference count of "posixacls" before jumping to label "checkaccess_bits".

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.5-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.5-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}