CVE-2023-52902

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52902
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52902.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52902
Downstream
Published
2024-08-21T06:10:42Z
Modified
2025-10-16T10:53:37.396644Z
Summary
nommu: fix memory leak in do_mmap() error path
Details

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

nommu: fix memory leak in do_mmap() error path

The preallocation of the maple tree nodes may leak if the error path to "errorjustfree" is taken. Fix this by moving the freeing of the maple tree nodes to a shared location for all error paths.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8220543df1489ef96c3d4e8b0b3b03c340e3943e
Fixed
1442d51026c58e7c11dd5f9b19650632a48676d4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8220543df1489ef96c3d4e8b0b3b03c340e3943e
Fixed
7f31cced5724e6d414fe750aa1cd7e7b578ec22f

Affected versions

v6.*

v6.0
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.2
v6.1.3
v6.1.4
v6.1.5
v6.1.6
v6.1.7
v6.2-rc1
v6.2-rc2
v6.2-rc3

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.8