• 公告ID (KylinSec-SA-2024-4658)

摘要:

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

cachefiles: fix memory leak in cachefiles_add_cache()

The following memory leak was reported after unbinding /dev/cachefiles:

==================================================================
unreferenced object 0xffff9b674176e3c0 (size 192):
comm "cachefilesd2", pid 680, jiffies 4294881224
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc ea38a44b):
[<ffffffff8eb8a1a5&gt;] kmem_cache_alloc+0x2d5/0x370
[<ffffffff8e917f86&gt;] prepare_creds+0x26/0x2e0
[<ffffffffc002eeef&gt;] cachefiles_determine_cache_security+0x1f/0x120
[<ffffffffc00243ec&gt;] cachefiles_add_cache+0x13c/0x3a0
[<ffffffffc0025216&gt;] cachefiles_daemon_write+0x146/0x1c0
[<ffffffff8ebc4a3b&gt;] vfs_write+0xcb/0x520
[<ffffffff8ebc5069&gt;] ksys_write+0x69/0xf0
[<ffffffff8f6d4662&gt;] do_syscall_64+0x72/0x140
[<ffffffff8f8000aa&gt;] entry_SYSCALL_64_after_hwframe+0x6e/0x76
==================================================================

Put the reference count of cache_cred in cachefiles_daemon_unbind() to
fix the problem. And also put cache_cred in cachefiles_add_cache() error
branch to avoid memory leaks.

安全等级: Low

公告ID: KylinSec-SA-2024-4658

发布日期: 2024年5月17日

关联CVE: CVE-2024-26840  

  • 详细介绍

1. 漏洞描述

   

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

cachefiles: fix memory leak in cachefiles_add_cache()

The following memory leak was reported after unbinding /dev/cachefiles:

==================================================================
unreferenced object 0xffff9b674176e3c0 (size 192):
comm "cachefilesd2", pid 680, jiffies 4294881224
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc ea38a44b):
[<ffffffff8eb8a1a5&gt;] kmem_cache_alloc+0x2d5/0x370
[<ffffffff8e917f86&gt;] prepare_creds+0x26/0x2e0
[<ffffffffc002eeef&gt;] cachefiles_determine_cache_security+0x1f/0x120
[<ffffffffc00243ec&gt;] cachefiles_add_cache+0x13c/0x3a0
[<ffffffffc0025216&gt;] cachefiles_daemon_write+0x146/0x1c0
[<ffffffff8ebc4a3b&gt;] vfs_write+0xcb/0x520
[<ffffffff8ebc5069&gt;] ksys_write+0x69/0xf0
[<ffffffff8f6d4662&gt;] do_syscall_64+0x72/0x140
[<ffffffff8f8000aa&gt;] entry_SYSCALL_64_after_hwframe+0x6e/0x76
==================================================================

Put the reference count of cache_cred in cachefiles_daemon_unbind() to
fix the problem. And also put cache_cred in cachefiles_add_cache() error
branch to avoid memory leaks.

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2024-26840 V6 kernel Unaffected

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2024-4613 下一篇:KylinSec-SA-2024-4659