{"id":"CVE-2024-53131","published":"2024-12-04T14:20:37Z","modified":"2026-05-11T20:51:27Z","title":"nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->b_bdev->bd_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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00324,"percentile":0.17922,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/085556bf8c70e2629e02e79268dac3016a08b8bf","tags":[]},{"url":"https://git.kernel.org/stable/c/6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9","tags":[]},{"url":"https://git.kernel.org/stable/c/b017697a517f8779ada4e8ce1c2c75dbf60a2636","tags":[]},{"url":"https://git.kernel.org/stable/c/19c71cdd77973f99a9adc3190130bc3aa7ae5423","tags":[]},{"url":"https://git.kernel.org/stable/c/3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9","tags":[]},{"url":"https://git.kernel.org/stable/c/59b49ca67cca7b007a5afd3de0283c8008157665","tags":[]},{"url":"https://git.kernel.org/stable/c/77e47f89d32c2d72eb33d0becbce7abe14d061f4","tags":[]},{"url":"https://git.kernel.org/stable/c/cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":3.58}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5305cb830834549b9203ad4d009ad5483c5e293f, < 085556bf8c70e2629e02e79268dac3016a08b8bf",">= 5305cb830834549b9203ad4d009ad5483c5e293f, < 6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9",">= 5305cb830834549b9203ad4d009ad5483c5e293f, < b017697a517f8779ada4e8ce1c2c75dbf60a2636",">= 5305cb830834549b9203ad4d009ad5483c5e293f, < 19c71cdd77973f99a9adc3190130bc3aa7ae5423",">= 5305cb830834549b9203ad4d009ad5483c5e293f, < 3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9",">= 5305cb830834549b9203ad4d009ad5483c5e293f, < 59b49ca67cca7b007a5afd3de0283c8008157665",">= 5305cb830834549b9203ad4d009ad5483c5e293f, < 77e47f89d32c2d72eb33d0becbce7abe14d061f4",">= 5305cb830834549b9203ad4d009ad5483c5e293f, < cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471"]},{"vendor":"Linux","product":"Linux","versions":["3.9"]}],"euvd":{"id":"EUVD-2024-51803","exploited":false,"provenance":"source"}}