{"id":"CVE-2024-53131","summary":"nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix null-ptr-deref in block_touch_buffer tracepoint\n\nPatch series \"nilfs2: fix null-ptr-deref bugs on block tracepoints\".\n\nThis series fixes null pointer dereference bugs that occur when using\nnilfs2 and two block-related tracepoints.\n\n\nThis patch (of 2):\n\nIt has been reported that when using \"block:block_touch_buffer\"\ntracepoint, touch_buffer() called from __nilfs_get_folio_block() causes a\nNULL pointer dereference, or a general protection fault when KASAN is\nenabled.\n\nThis happens because since the tracepoint was added in touch_buffer(), it\nreferences the dev_t member bh-\u003eb_bdev-\u003ebd_dev regardless of whether the\nbuffer head has a pointer to a block_device structure.  In the current\nimplementation, the block_device structure is set after the function\nreturns to the caller.\n\nHere, touch_buffer() is used to mark the folio/page that owns the buffer\nhead as accessed, but the common search helper for folio/page used by the\ncaller function was optimized to mark the folio/page as accessed when it\nwas reimplemented a long time ago, eliminating the need to call\ntouch_buffer() here in the first place.\n\nSo this solves the issue by eliminating the touch_buffer() call itself.","modified":"2026-04-16T04:33:11.523733946Z","published":"2024-12-04T14:20:37.455Z","related":["SUSE-SU-2025:0117-1","SUSE-SU-2025:0153-1","SUSE-SU-2025:0154-1","SUSE-SU-2025:0201-1","SUSE-SU-2025:0201-2","SUSE-SU-2025:0229-1","SUSE-SU-2025:0289-1","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7276-1","USN-7277-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53131.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/085556bf8c70e2629e02e79268dac3016a08b8bf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/19c71cdd77973f99a9adc3190130bc3aa7ae5423"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/59b49ca67cca7b007a5afd3de0283c8008157665"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/77e47f89d32c2d72eb33d0becbce7abe14d061f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b017697a517f8779ada4e8ce1c2c75dbf60a2636"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53131.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53131"},{"type":"PACKAGE","url":"https://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":"5305cb830834549b9203ad4d009ad5483c5e293f"},{"fixed":"085556bf8c70e2629e02e79268dac3016a08b8bf"},{"fixed":"6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9"},{"fixed":"b017697a517f8779ada4e8ce1c2c75dbf60a2636"},{"fixed":"19c71cdd77973f99a9adc3190130bc3aa7ae5423"},{"fixed":"3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9"},{"fixed":"59b49ca67cca7b007a5afd3de0283c8008157665"},{"fixed":"77e47f89d32c2d72eb33d0becbce7abe14d061f4"},{"fixed":"cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53131.json"}}],"schema_version":"1.7.5"}