{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-53131","id":"CVE-2024-53131","title":"nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint","description":"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\"\ntr","descriptionLong":"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.","published":"2024-12-04T14:20:37.455Z","updated":"2026-10-28T02:30:36.754761545Z","reserved":"2024-11-19T17:17:24.995Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"085556bf8c70e2629e02e79268dac3016a08b8bf","status":"affected","versionType":"git"},{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9","status":"affected","versionType":"git"},{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"b017697a517f8779ada4e8ce1c2c75dbf60a2636","status":"affected","versionType":"git"},{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"19c71cdd77973f99a9adc3190130bc3aa7ae5423","status":"affected","versionType":"git"},{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9","status":"affected","versionType":"git"},{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"59b49ca67cca7b007a5afd3de0283c8008157665","status":"affected","versionType":"git"},{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"77e47f89d32c2d72eb33d0becbce7abe14d061f4","status":"affected","versionType":"git"},{"version":"5305cb830834549b9203ad4d009ad5483c5e293f","lessThan":"cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","lessThan":"3.9","status":"unaffected","versionType":"semver"},{"version":"4.19.325","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.287","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.231","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.174","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.119","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.63","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.11.10","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/085556bf8c70e2629e02e79268dac3016a08b8bf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9","tags":["web"]},{"url":"https://git.kernel.org/stable/c/b017697a517f8779ada4e8ce1c2c75dbf60a2636","tags":["web"]},{"url":"https://git.kernel.org/stable/c/19c71cdd77973f99a9adc3190130bc3aa7ae5423","tags":["web"]},{"url":"https://git.kernel.org/stable/c/3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/59b49ca67cca7b007a5afd3de0283c8008157665","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/77e47f89d32c2d72eb33d0becbce7abe14d061f4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53131.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53131","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00238,"epssPercentile":0.15056,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-53131","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53131","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-53131","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-53131","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}