Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
128
Star
73
Fork
330
src-openEuler
/
kernel
Closed
Code
Issues
1197
Pull Requests
35
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
CVE-2024-45000
Done
#IAOXZM
CVE和安全问题
openeuler-ci-bot
owner
Opened this issue
2024-09-05 04:40
一、漏洞信息 漏洞编号:[CVE-2024-45000](https://nvd.nist.gov/vuln/detail/CVE-2024-45000) 漏洞归属组件:[kernel](https://gitee.com/src-openeuler/kernel) 漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.0,6.1.14,6.1.19,6.1.5,6.1.6,6.1.8,6.4.0,6.6.0 CVSS V3.0分值: BaseScore:5.5 Medium Vector:CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 漏洞简述: In the Linux kernel, the following vulnerability has been resolved:fs/netfs/fscache_cookie: add missing n_accesses checkThis fixes a NULL pointer dereference bug due to a data race whichlooks like this: BUG: kernel NULL pointer dereference, address: 0000000000000008 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] SMP PTI CPU: 33 PID: 16573 Comm: kworker/u97:799 Not tainted 6.8.7-cm4all1-hp+ #43 Hardware name: HP ProLiant DL380 Gen9/ProLiant DL380 Gen9, BIOS P89 10/17/2018 Workqueue: events_unbound netfs_rreq_write_to_cache_work RIP: 0010:cachefiles_prepare_write+0x30/0xa0 Code: 57 41 56 45 89 ce 41 55 49 89 cd 41 54 49 89 d4 55 53 48 89 fb 48 83 ec 08 48 8b 47 08 48 83 7f 10 00 48 89 34 24 48 8b 68 20 <48> 8b 45 08 4c 8b 38 74 45 49 8b 7f 50 e8 4e a9 b0 ff 48 8b 73 10 RSP: 0018:ffffb4e78113bde0 EFLAGS: 00010286 RAX: ffff976126be6d10 RBX: ffff97615cdb8438 RCX: 0000000000020000 RDX: ffff97605e6c4c68 RSI: ffff97605e6c4c60 RDI: ffff97615cdb8438 RBP: 0000000000000000 R08: 0000000000278333 R09: 0000000000000001 R10: ffff97605e6c4600 R11: 0000000000000001 R12: ffff97605e6c4c68 R13: 0000000000020000 R14: 0000000000000001 R15: ffff976064fe2c00 FS: 0000000000000000(0000) GS:ffff9776dfd40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000008 CR3: 000000005942c002 CR4: 00000000001706f0 Call Trace: <TASK> ? __die+0x1f/0x70 ? page_fault_oops+0x15d/0x440 ? search_module_extables+0xe/0x40 ? fixup_exception+0x22/0x2f0 ? exc_page_fault+0x5f/0x100 ? asm_exc_page_fault+0x22/0x30 ? cachefiles_prepare_write+0x30/0xa0 netfs_rreq_write_to_cache_work+0x135/0x2e0 process_one_work+0x137/0x2c0 worker_thread+0x2e9/0x400 ? __pfx_worker_thread+0x10/0x10 kthread+0xcc/0x100 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x30/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1b/0x30 </TASK> Modules linked in: CR2: 0000000000000008 ---[ end trace 0000000000000000 ]---This happened because fscache_cookie_state_machine() was slow and wasstill running while another process invoked fscache_unuse_cookie();this led to a fscache_cookie_lru_do_one() call, setting theFSCACHE_COOKIE_DO_LRU_DISCARD flag, which was picked up byfscache_cookie_state_machine(), withdrawing the cookie viacachefiles_withdraw_cookie(), clearing cookie->cache_priv.At the same time, yet another process invokedcachefiles_prepare_write(), which found a NULL pointer in this codeline: struct cachefiles_object *object = cachefiles_cres_object(cres);The next line crashes, obviously: struct cachefiles_cache *cache = object->volume->cache;During cachefiles_prepare_write(), the n_accesses counter isnon-zero (via fscache_begin_operation()). The cookie must not bewithdrawn until it drops to zero.The counter is checked by fscache_cookie_state_machine() beforeswitching to FSCACHE_COOKIE_STATE_RELINQUISHING andFSCACHE_COOKIE_STATE_WITHDRAWING (in caseFSCACHE_COOKIE_STATE_FAILED ), but not forFSCACHE_COOKIE_STATE_LRU_DISCARDING ( caseFSCACHE_COOKIE_STATE_ACTIVE ).This patch adds the missing check. With a non-zero access counter,the function returns and the next fscache_end_cookie_access() callwill queue another fscache_cookie_state_machine() call to handle thestill-pending FSCACHE_COOKIE_DO_LRU_DISCARD. 漏洞公开时间:2024-09-05 04:15:08 漏洞创建时间:2024-09-05 12:40:47 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2024-45000 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-45000 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-45000.mbox | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2024-45000 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://bugzilla.redhat.com/show_bug.cgi?id=2309863 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | redhat_bugzilla | https://lore.kernel.org/linux-cve-announce/2024090449-CVE-2024-45000-fd6f@gregkh/T | https://bugzilla.redhat.com/show_bug.cgi?id=2309863 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/linus/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 (6.11-rc4) | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | debian | | https://security-tracker.debian.org/tracker/CVE-2024-45000 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | | | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | | nvd | | | | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | | nvd | | | | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | | nvd | | | | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | | nvd | | linux | | https://git.kernel.org/linus/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | https://git.kernel.org/linus/12bb21a29c19aae50cfad4e2bb5c943108f34a7d | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:fs/netfs/fscache_cookie: add missing n_accesses checkThis fixes a NULL pointer dereference bug due to a data race whichlooks like this: BUG: kernel NULL pointer dereference, address: 0000000000000008 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] SMP PTI CPU: 33 PID: 16573 Comm: kworker/u97:799 Not tainted 6.8.7-cm4all1-hp+ #43 Hardware name: HP ProLiant DL380 Gen9/ProLiant DL380 Gen9, BIOS P89 10/17/2018 Workqueue: events_unbound netfs_rreq_write_to_cache_work RIP: 0010:cachefiles_prepare_write+0x30/0xa0 Code: 57 41 56 45 89 ce 41 55 49 89 cd 41 54 49 89 d4 55 53 48 89 fb 48 83 ec 08 48 8b 47 08 48 83 7f 10 00 48 89 34 24 48 8b 68 20 <48> 8b 45 08 4c 8b 38 74 45 49 8b 7f 50 e8 4e a9 b0 ff 48 8b 73 10 RSP: 0018:ffffb4e78113bde0 EFLAGS: 00010286 RAX: ffff976126be6d10 RBX: ffff97615cdb8438 RCX: 0000000000020000 RDX: ffff97605e6c4c68 RSI: ffff97605e6c4c60 RDI: ffff97615cdb8438 RBP: 0000000000000000 R08: 0000000000278333 R09: 0000000000000001 R10: ffff97605e6c4600 R11: 0000000000000001 R12: ffff97605e6c4c68 R13: 0000000000020000 R14: 0000000000000001 R15: ffff976064fe2c00 FS: 0000000000000000(0000) GS:ffff9776dfd40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000008 CR3: 000000005942c002 CR4: 00000000001706f0 Call Trace: <TASK> ? __die+0x1f/0x70 ? page_fault_oops+0x15d/0x440 ? search_module_extables+0xe/0x40 ? fixup_exception+0x22/0x2f0 ? exc_page_fault+0x5f/0x100 ? asm_exc_page_fault+0x22/0x30 ? cachefiles_prepare_write+0x30/0xa0 netfs_rreq_write_to_cache_work+0x135/0x2e0 process_one_work+0x137/0x2c0 worker_thread+0x2e9/0x400 ? __pfx_worker_thread+0x10/0x10 kthread+0xcc/0x100 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x30/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1b/0x30 </TASK> Modules linked in: CR2: 0000000000000008 ---[ end trace 0000000000000000 ]---This happened because fscache_cookie_state_machine() was slow and wasstill running while another process invoked fscache_unuse_cookie();this led to a fscache_cookie_lru_do_one() call, setting theFSCACHE_COOKIE_DO_LRU_DISCARD flag, which was picked up byfscache_cookie_state_machine(), withdrawing the cookie viacachefiles_withdraw_cookie(), clearing cookie->cache_priv.At the same time, yet another process invokedcachefiles_prepare_write(), which found a NULL pointer in this codeline: struct cachefiles_object *object = cachefiles_cres_object(cres);The next line crashes, obviously: struct cachefiles_cache *cache = object->volume->cache;During cachefiles_prepare_write(), the n_accesses counter isnon-zero (via fscache_begin_operation()). The cookie must not bewithdrawn until it drops to zero.The counter is checked by fscache_cookie_state_machine() beforeswitching to FSCACHE_COOKIE_STATE_RELINQUISHING andFSCACHE_COOKIE_STATE_WITHDRAWING (in caseFSCACHE_COOKIE_STATE_FAILED ), but not forFSCACHE_COOKIE_STATE_LRU_DISCARDING ( caseFSCACHE_COOKIE_STATE_ACTIVE ).This patch adds the missing check. With a non-zero access counter,the function returns and the next fscache_end_cookie_access() callwill queue another fscache_cookie_state_machine() call to handle thestill-pending FSCACHE_COOKIE_DO_LRU_DISCARD. openEuler评分: 5.5 Vector:CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-24.03-LTS(6.6.0):受影响 2.openEuler-20.03-LTS-SP4(4.19.90):不受影响 3.openEuler-22.03-LTS-SP1(5.10.0):不受影响 4.openEuler-22.03-LTS-SP3(5.10.0):不受影响 5.openEuler-22.03-LTS-SP4(5.10.0):不受影响 6.master(6.6.0):不受影响 7.openEuler-24.03-LTS-Next(6.6.0):不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP4(4.19.90):否 2.openEuler-22.03-LTS-SP1(5.10.0):否 3.openEuler-22.03-LTS-SP3(5.10.0):否 4.master(6.6.0):否 5.openEuler-24.03-LTS(6.6.0):否 6.openEuler-24.03-LTS-Next(6.6.0):否 7.openEuler-22.03-LTS-SP4(5.10.0):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-2181
一、漏洞信息 漏洞编号:[CVE-2024-45000](https://nvd.nist.gov/vuln/detail/CVE-2024-45000) 漏洞归属组件:[kernel](https://gitee.com/src-openeuler/kernel) 漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.0,6.1.14,6.1.19,6.1.5,6.1.6,6.1.8,6.4.0,6.6.0 CVSS V3.0分值: BaseScore:5.5 Medium Vector:CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 漏洞简述: In the Linux kernel, the following vulnerability has been resolved:fs/netfs/fscache_cookie: add missing n_accesses checkThis fixes a NULL pointer dereference bug due to a data race whichlooks like this: BUG: kernel NULL pointer dereference, address: 0000000000000008 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] SMP PTI CPU: 33 PID: 16573 Comm: kworker/u97:799 Not tainted 6.8.7-cm4all1-hp+ #43 Hardware name: HP ProLiant DL380 Gen9/ProLiant DL380 Gen9, BIOS P89 10/17/2018 Workqueue: events_unbound netfs_rreq_write_to_cache_work RIP: 0010:cachefiles_prepare_write+0x30/0xa0 Code: 57 41 56 45 89 ce 41 55 49 89 cd 41 54 49 89 d4 55 53 48 89 fb 48 83 ec 08 48 8b 47 08 48 83 7f 10 00 48 89 34 24 48 8b 68 20 <48> 8b 45 08 4c 8b 38 74 45 49 8b 7f 50 e8 4e a9 b0 ff 48 8b 73 10 RSP: 0018:ffffb4e78113bde0 EFLAGS: 00010286 RAX: ffff976126be6d10 RBX: ffff97615cdb8438 RCX: 0000000000020000 RDX: ffff97605e6c4c68 RSI: ffff97605e6c4c60 RDI: ffff97615cdb8438 RBP: 0000000000000000 R08: 0000000000278333 R09: 0000000000000001 R10: ffff97605e6c4600 R11: 0000000000000001 R12: ffff97605e6c4c68 R13: 0000000000020000 R14: 0000000000000001 R15: ffff976064fe2c00 FS: 0000000000000000(0000) GS:ffff9776dfd40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000008 CR3: 000000005942c002 CR4: 00000000001706f0 Call Trace: <TASK> ? __die+0x1f/0x70 ? page_fault_oops+0x15d/0x440 ? search_module_extables+0xe/0x40 ? fixup_exception+0x22/0x2f0 ? exc_page_fault+0x5f/0x100 ? asm_exc_page_fault+0x22/0x30 ? cachefiles_prepare_write+0x30/0xa0 netfs_rreq_write_to_cache_work+0x135/0x2e0 process_one_work+0x137/0x2c0 worker_thread+0x2e9/0x400 ? __pfx_worker_thread+0x10/0x10 kthread+0xcc/0x100 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x30/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1b/0x30 </TASK> Modules linked in: CR2: 0000000000000008 ---[ end trace 0000000000000000 ]---This happened because fscache_cookie_state_machine() was slow and wasstill running while another process invoked fscache_unuse_cookie();this led to a fscache_cookie_lru_do_one() call, setting theFSCACHE_COOKIE_DO_LRU_DISCARD flag, which was picked up byfscache_cookie_state_machine(), withdrawing the cookie viacachefiles_withdraw_cookie(), clearing cookie->cache_priv.At the same time, yet another process invokedcachefiles_prepare_write(), which found a NULL pointer in this codeline: struct cachefiles_object *object = cachefiles_cres_object(cres);The next line crashes, obviously: struct cachefiles_cache *cache = object->volume->cache;During cachefiles_prepare_write(), the n_accesses counter isnon-zero (via fscache_begin_operation()). The cookie must not bewithdrawn until it drops to zero.The counter is checked by fscache_cookie_state_machine() beforeswitching to FSCACHE_COOKIE_STATE_RELINQUISHING andFSCACHE_COOKIE_STATE_WITHDRAWING (in caseFSCACHE_COOKIE_STATE_FAILED ), but not forFSCACHE_COOKIE_STATE_LRU_DISCARDING ( caseFSCACHE_COOKIE_STATE_ACTIVE ).This patch adds the missing check. With a non-zero access counter,the function returns and the next fscache_end_cookie_access() callwill queue another fscache_cookie_state_machine() call to handle thestill-pending FSCACHE_COOKIE_DO_LRU_DISCARD. 漏洞公开时间:2024-09-05 04:15:08 漏洞创建时间:2024-09-05 12:40:47 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2024-45000 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-45000 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-45000.mbox | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2024-45000 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | suse_bugzilla | https://bugzilla.redhat.com/show_bug.cgi?id=2309863 | https://bugzilla.suse.com/show_bug.cgi?id=1230170 | | redhat_bugzilla | https://lore.kernel.org/linux-cve-announce/2024090449-CVE-2024-45000-fd6f@gregkh/T | https://bugzilla.redhat.com/show_bug.cgi?id=2309863 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/linus/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 (6.11-rc4) | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2024-45000 | https://ubuntu.com/security/CVE-2024-45000 | | debian | | https://security-tracker.debian.org/tracker/CVE-2024-45000 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | | | https://git.kernel.org/stable/c/0a4d41fa14b2a0efd40e350cfe8ec6a4c998ac1d | | nvd | | | | https://git.kernel.org/stable/c/b8a50877f68efdcc0be3fcc5116e00c31b90e45b | | nvd | | | | https://git.kernel.org/stable/c/dfaa39b05a6cf34a16c525a2759ee6ab26b5fef6 | | nvd | | | | https://git.kernel.org/stable/c/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | | nvd | | linux | | https://git.kernel.org/linus/f71aa06398aabc2e3eaac25acdf3d62e0094ba70 | https://git.kernel.org/linus/12bb21a29c19aae50cfad4e2bb5c943108f34a7d | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:fs/netfs/fscache_cookie: add missing n_accesses checkThis fixes a NULL pointer dereference bug due to a data race whichlooks like this: BUG: kernel NULL pointer dereference, address: 0000000000000008 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] SMP PTI CPU: 33 PID: 16573 Comm: kworker/u97:799 Not tainted 6.8.7-cm4all1-hp+ #43 Hardware name: HP ProLiant DL380 Gen9/ProLiant DL380 Gen9, BIOS P89 10/17/2018 Workqueue: events_unbound netfs_rreq_write_to_cache_work RIP: 0010:cachefiles_prepare_write+0x30/0xa0 Code: 57 41 56 45 89 ce 41 55 49 89 cd 41 54 49 89 d4 55 53 48 89 fb 48 83 ec 08 48 8b 47 08 48 83 7f 10 00 48 89 34 24 48 8b 68 20 <48> 8b 45 08 4c 8b 38 74 45 49 8b 7f 50 e8 4e a9 b0 ff 48 8b 73 10 RSP: 0018:ffffb4e78113bde0 EFLAGS: 00010286 RAX: ffff976126be6d10 RBX: ffff97615cdb8438 RCX: 0000000000020000 RDX: ffff97605e6c4c68 RSI: ffff97605e6c4c60 RDI: ffff97615cdb8438 RBP: 0000000000000000 R08: 0000000000278333 R09: 0000000000000001 R10: ffff97605e6c4600 R11: 0000000000000001 R12: ffff97605e6c4c68 R13: 0000000000020000 R14: 0000000000000001 R15: ffff976064fe2c00 FS: 0000000000000000(0000) GS:ffff9776dfd40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000008 CR3: 000000005942c002 CR4: 00000000001706f0 Call Trace: <TASK> ? __die+0x1f/0x70 ? page_fault_oops+0x15d/0x440 ? search_module_extables+0xe/0x40 ? fixup_exception+0x22/0x2f0 ? exc_page_fault+0x5f/0x100 ? asm_exc_page_fault+0x22/0x30 ? cachefiles_prepare_write+0x30/0xa0 netfs_rreq_write_to_cache_work+0x135/0x2e0 process_one_work+0x137/0x2c0 worker_thread+0x2e9/0x400 ? __pfx_worker_thread+0x10/0x10 kthread+0xcc/0x100 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x30/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1b/0x30 </TASK> Modules linked in: CR2: 0000000000000008 ---[ end trace 0000000000000000 ]---This happened because fscache_cookie_state_machine() was slow and wasstill running while another process invoked fscache_unuse_cookie();this led to a fscache_cookie_lru_do_one() call, setting theFSCACHE_COOKIE_DO_LRU_DISCARD flag, which was picked up byfscache_cookie_state_machine(), withdrawing the cookie viacachefiles_withdraw_cookie(), clearing cookie->cache_priv.At the same time, yet another process invokedcachefiles_prepare_write(), which found a NULL pointer in this codeline: struct cachefiles_object *object = cachefiles_cres_object(cres);The next line crashes, obviously: struct cachefiles_cache *cache = object->volume->cache;During cachefiles_prepare_write(), the n_accesses counter isnon-zero (via fscache_begin_operation()). The cookie must not bewithdrawn until it drops to zero.The counter is checked by fscache_cookie_state_machine() beforeswitching to FSCACHE_COOKIE_STATE_RELINQUISHING andFSCACHE_COOKIE_STATE_WITHDRAWING (in caseFSCACHE_COOKIE_STATE_FAILED ), but not forFSCACHE_COOKIE_STATE_LRU_DISCARDING ( caseFSCACHE_COOKIE_STATE_ACTIVE ).This patch adds the missing check. With a non-zero access counter,the function returns and the next fscache_end_cookie_access() callwill queue another fscache_cookie_state_machine() call to handle thestill-pending FSCACHE_COOKIE_DO_LRU_DISCARD. openEuler评分: 5.5 Vector:CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-24.03-LTS(6.6.0):受影响 2.openEuler-20.03-LTS-SP4(4.19.90):不受影响 3.openEuler-22.03-LTS-SP1(5.10.0):不受影响 4.openEuler-22.03-LTS-SP3(5.10.0):不受影响 5.openEuler-22.03-LTS-SP4(5.10.0):不受影响 6.master(6.6.0):不受影响 7.openEuler-24.03-LTS-Next(6.6.0):不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP4(4.19.90):否 2.openEuler-22.03-LTS-SP1(5.10.0):否 3.openEuler-22.03-LTS-SP3(5.10.0):否 4.master(6.6.0):否 5.openEuler-24.03-LTS(6.6.0):否 6.openEuler-24.03-LTS-Next(6.6.0):否 7.openEuler-22.03-LTS-SP4(5.10.0):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-2181
Comments (
17
)
Sign in
to comment
Status
Done
Backlog
已挂起
Doing
Done
Declined
Assignees
Not set
sanglipeng
sanglipeng
Assignee
Collaborator
+Assign
+Mention
Labels
CVE/FIXED
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/kernel.git
git@gitee.com:src-openeuler/kernel.git
src-openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register