CVE-2024-56549 in Linux信息

摘要

由 VulDB • 2026-06-27

在 Linux 内核中,已修复以下漏洞:

cachefiles: 修复对象中的空指针解引用。文件

目前,object->file 存在 ondemand-mode(按需模式)下的空指针解引用问题。根本原因是分配的 fd 和 object->file 的生命周期不一致,且用户空间对 anon_fd 的调用使用了 object->file。触发该问题的流程如下:

[写入 fd] [卸载文件系统]
cachefiles_ondemand_fd_write_iter fscache_cookie_state_machine cachefiles_withdraw_cookie if (!file) return -ENOBUFS cachefiles_clean_up_object cachefiles_unmark_inode_in_use fput(object->file) object->file = NULL // file 空指针解引用! __cachefiles_write(..., file, ...)

通过在 write/llseek(写入/lseek)之前增加对 object->file 的额外引用计数,并在操作完成后递减该计数来修复此问题。

If you want to get best quality of vulnerability data, you may have to visit VulDB.

来源

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!