CVE-2024-53175

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-53175
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53175.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-53175
Downstream
Related
Published
2024-12-27T13:49:19.695Z
Modified
2025-11-28T02:34:35.578178Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
ipc: fix memleak if msg_init_ns failed in create_ipc_ns
Details

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

ipc: fix memleak if msginitns failed in createipcns

Percpu memory allocation may failed during createipcns however this fail is not handled properly since ipc sysctls and mq sysctls is not released properly. Fix this by release these two resource when failure.

Here is the kmemleak stack when percpu failed:

unreferenced object 0xffff88819de2a600 (size 512): comm "shmem2nstest", pid 120711, jiffies 4300542254 hex dump (first 32 bytes): 60 aa 9d 84 ff ff ff ff fc 18 48 b2 84 88 ff ff `.........H..... 04 00 00 00 a4 01 00 00 20 e4 56 81 ff ff ff ff ........ .V..... backtrace (crc be7cba35): [<ffffffff81b43f83>] _kmallocnodetrackcallernoprof+0x333/0x420 [<ffffffff81a52e56>] kmemdupnoprof+0x26/0x50 [<ffffffff821b2f37>] setupmqsysctls+0x57/0x1d0 [<ffffffff821b29cc>] copyipcs+0x29c/0x3b0 [<ffffffff815d6a10>] createnewnamespaces+0x1d0/0x920 [<ffffffff815d7449>] copynamespaces+0x2e9/0x3e0 [<ffffffff815458f3>] copyprocess+0x29f3/0x7ff0 [<ffffffff8154b080>] kernelclone+0xc0/0x650 [<ffffffff8154b6b1>] _dosysclone+0xa1/0xe0 [<ffffffff843df8ff>] dosyscall64+0xbf/0x1c0 [<ffffffff846000b0>] entrySYSCALL64afterhwframe+0x4b/0x53

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53175.json"
}
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
72d1e611082eda18689106a0c192f2827072713c
Fixed
3d230cfd4b9b0558c7b2039ba1def2ce6b6cd158
Fixed
10209665b5bf199f8065b2e7d2b2dc6cdf227117
Fixed
8fed302872e26c7bf44d855c53a1cde747172d58
Fixed
928de5fcd462498b8334107035da8ab85e316d8a
Fixed
bc8f5921cd69188627c08041276238de222ab466

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.120
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.64
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.11.11
Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.2