{"id":"CVE-2024-53131","aliases":["CVE-2024-53131"],"related":[],"kind":"vulnerability","state":"published","title":"nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint Serie de parches \"nilfs2: fix null-ptr-deref bugs on block tracepoints\". Esta serie corrige errores de desreferencia de puntero nulo que ocurren al usar nilfs2 y dos puntos de seguimiento relacionados con bloques. Este parche (de 2): Se ha informado que al usar el punto de seguimiento \"block:block_touch_buffer\", touch_buffer() llamado desde __nilfs_get_folio_block() causa una desreferencia de puntero NULL o un error de protección general cuando KASAN está habilitado. Esto sucede porque, dado que el punto de seguimiento se agregó en touch_buffer(), hace referencia al miembro dev_t bh-&gt;b_bdev-&gt;bd_dev independientemente de si el cabezal del búfer tiene un puntero a una estructura block_device. En la implementación actual, la estructura block_device se establece después de que la función regresa al llamador. Aquí, touch_buffer() se utiliza para marcar el folio/página que posee el encabezado del búfer como accedido, pero el asistente de búsqueda común para folio/página utilizado por la función de llamada se optimizó para marcar el folio/página como accedido cuando se reimplementó hace mucho tiempo, eliminando la necesidad de llamar a touch_buffer() aquí en primer lugar. Por lo tanto, esto resuelve el problema al eliminar la llamada a touch_buffer() en sí.","source":"nvd"}],"published":"2024-12-04T14:20:37.455Z","modified":"2026-06-17T08:08:22.760Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"085556bf8c70e2629e02e79268dac3016a08b8bf","status":"affected"},{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9","status":"affected"},{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"b017697a517f8779ada4e8ce1c2c75dbf60a2636","status":"affected"},{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"19c71cdd77973f99a9adc3190130bc3aa7ae5423","status":"affected"},{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9","status":"affected"},{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"59b49ca67cca7b007a5afd3de0283c8008157665","status":"affected"},{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"77e47f89d32c2d72eb33d0becbce7abe14d061f4","status":"affected"},{"type":"git","introduced":"5305cb830834549b9203ad4d009ad5483c5e293f","fixed":"cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"4.19.325","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.287","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.231","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.119","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.63","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.10","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.9","fixed":"6.1.119"},{"status":"affected","introduced":"6.6.0","fixed":"6.6.63"},{"status":"affected","introduced":"6.11.0","fixed":"6.11.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/085556bf8c70e2629e02e79268dac3016a08b8bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b017697a517f8779ada4e8ce1c2c75dbf60a2636","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19c71cdd77973f99a9adc3190130bc3aa7ae5423","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59b49ca67cca7b007a5afd3de0283c8008157665","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77e47f89d32c2d72eb33d0becbce7abe14d061f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53131","url":"https://www.cve.org/CVERecord?id=CVE-2024-53131","licence":"CVE Terms of Use","modified":"2026-05-11T20:51:27.227Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53131","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53131","licence":"Public domain","modified":"2026-06-17T08:08:22.760Z"}],"updatedAt":"2026-11-25T22:58:49.703Z","epss":{"score":0.00238,"percentile":0.15927,"date":"2026-12-01T12:00:22.000Z"}}