{"id":"CVE-2026-23201","aliases":["CVE-2026-23201"],"related":[],"kind":"vulnerability","state":"published","title":"ceph: fix oops due to invalid pointer for kfree() in parse_longname()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix oops due to invalid pointer for kfree() in parse_longname()\n\nThis fixes a kernel oops when reading ceph snapshot directories (.snap),\nfor example by simply running `ls /mnt/my_ceph/.snap`.\n\nThe variable str is guarded by __free(kfree), but advanced by one for\nskipping the initial '_' in snapshot names. Thus, kfree() is called\nwith an invalid pointer.  This patch removes the need for advancing the\npointer so kfree() is called with correct memory pointer.\n\nSteps to reproduce:\n\n1. Create snapshots on a cephfs volume (I've 63 snaps in my testcase)\n\n2. Add cephfs mount to fstab\n$ echo \"samba-fileserver@.files=/volumes/datapool/stuff/3461082b-ecc9-4e82-8549-3fd2590d3fb6      /mnt/test/stuff   ceph     acl,noatime,_netdev    0       0\" >> /etc/fstab\n\n3. Reboot the system\n$ systemctl reboot\n\n4. Check if it's really mounted\n$ mount | grep stuff\n\n5. List snapshots (expected 63 snapshots on my system)\n$ ls /mnt/test/stuff/.snap\n\nNow ls hangs forever and the kernel log shows the oops.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix oops due to invalid pointer for kfree() in parse_longname()\n\nThis fixes a kernel oops when reading ceph snapshot directories (.snap),\nfor example by simply running `ls /mnt/my_ceph/.snap`.\n\nThe variable str is guarded by __free(kfree), but advanced by one for\nskipping the initial '_' in snapshot names. Thus, kfree() is called\nwith an invalid pointer.  This patch removes the need for advancing the\npointer so kfree() is called with correct memory pointer.\n\nSteps to reproduce:\n\n1. Create snapshots on a cephfs volume (I've 63 snaps in my testcase)\n\n2. Add cephfs mount to fstab\n$ echo \"samba-fileserver@.files=/volumes/datapool/stuff/3461082b-ecc9-4e82-8549-3fd2590d3fb6      /mnt/test/stuff   ceph     acl,noatime,_netdev    0       0\" >> /etc/fstab\n\n3. Reboot the system\n$ systemctl reboot\n\n4. Check if it's really mounted\n$ mount | grep stuff\n\n5. List snapshots (expected 63 snapshots on my system)\n$ ls /mnt/test/stuff/.snap\n\nNow ls hangs forever and the kernel log shows the oops.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nceph: corrige un oops debido a un puntero inválido para kfree() en parse_longname()\n\nEsto corrige un oops del kernel al leer directorios de instantáneas de ceph (.snap), por ejemplo, simplemente ejecutando 'ls /mnt/my_ceph/.snap'.\n\nLa variable str está protegida por __free(kfree), pero se avanza en uno para saltar el '_' inicial en los nombres de las instantáneas. Por lo tanto, se llama a kfree() con un puntero inválido. Este parche elimina la necesidad de avanzar el puntero para que se llame a kfree() con el puntero de memoria correcto.\n\nPasos para reproducir:\n\n1. Crea instantáneas en un volumen cephfs (tengo 63 instantáneas en mi caso de prueba)\n\n2. Añade el montaje cephfs a fstab\n$ echo 'samba-fileserver@.files=/volumes/datapool/stuff/3461082b-ecc9-4e82-8549-3fd2590d3fb6      /mnt/test/stuff   ceph     acl,noatime,_netdev    0       0' &gt;&gt; /etc/fstab\n\n3. Reinicia el sistema\n$ systemctl reboot\n\n4. Comprueba si está realmente montado\n$ mount | grep stuff\n\n5. Lista las instantáneas (se esperan 63 instantáneas en mi sistema)\n$ ls /mnt/test/stuff/.snap\n\nAhora ls se cuelga indefinidamente y el registro del kernel muestra el oops.","source":"nvd"}],"published":"2026-02-14T16:27:25.693Z","modified":"2026-09-14T12:17:39.287Z","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":"4b9aee707c4580511983a0998547f3b28514e6a6","fixed":"c9a129c82ddf82a50b4f8960d2609714ca2dbd26","status":"affected"},{"type":"git","introduced":"bb80f7618832d26f7e395f52f82b1dac76223e5f","fixed":"8c9af7339de419819cfc641d551675d38ff99abf","status":"affected"},{"type":"git","introduced":"101841c38346f4ca41dc1802c867da990ffb32eb","fixed":"e258ed369c9e04caa7d2fd49785d753ae4034cb6","status":"affected"},{"type":"git","introduced":"101841c38346f4ca41dc1802c867da990ffb32eb","fixed":"bc8dedae022ce3058659c3addef3ec4b41d15e00","status":"affected"},{"type":"git","version":"3145b2b11492d61c512bbc59660bb823bc757f48","status":"affected"},{"type":"git","version":"493479af8af3ab907f49e99323777d498a4fbd2b","status":"affected"},{"type":"semver","introduced":"6.12.42","fixed":"6.12.70","status":"affected"},{"type":"semver","introduced":"6.15.10","fixed":"6.16","status":"affected"},{"type":"semver","introduced":"6.16.1","fixed":"6.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.12.70","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.10","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","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":"6.12.42","fixed":"6.12.70"},{"status":"affected","introduced":"6.15.10","fixed":"6.16"},{"status":"affected","introduced":"6.16.1","fixed":"6.18.10"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c9a129c82ddf82a50b4f8960d2609714ca2dbd26","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c9af7339de419819cfc641d551675d38ff99abf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e258ed369c9e04caa7d2fd49785d753ae4034cb6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc8dedae022ce3058659c3addef3ec4b41d15e00","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23201","url":"https://www.cve.org/CVERecord?id=CVE-2026-23201","licence":"CVE Terms of Use","modified":"2026-09-14T11:58:12.875Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23201","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23201","licence":"Public domain","modified":"2026-09-14T12:17:39.287Z"}],"updatedAt":"2026-11-25T22:59:13.918Z","epss":{"score":0.00135,"percentile":0.03188,"date":"2026-12-02T12:00:21.000Z"}}