CVE-2026-43408
JSON

7.8high

ceph: add a bunch of missing ceph_path_info initializers

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ceph: add a bunch of missing ceph_path_info initializers ceph_mdsc_build_path() must be called with a zero-initialized ceph_path_info parameter, or else the following ceph_mdsc_free_path_info() may crash. Example crash (on Linux 6.18.12): virt_to_cache: Object is not a Slab page! WARNING: CPU: 184 PID: 2871736 at mm/slub.c:6732 kmem_cache_free+0x316/0x400 [...] Call Trace: [...] ceph_open+0x13d/0x3e0 do_dentry_open+0x134/0x480 vfs_open+0x2a/0xe0 path_openat+0x9a3/0x1160 [...] cache_from_obj: Wrong slab cache. names_cache but object is from ceph_inode_info WARNING: CPU: 184 PID: 2871736 at mm/slub.c:6746 kmem_cache_free+0x2dd/0x400 [...] kernel BUG at mm/slub.c:634! Oops: invalid opcode: 0000 [#1] SMP NOPTI RIP: 0010:__slab_free+0x1a4/0x350 Some of the ceph_mdsc_build_path() callers had initializers, but others had not, even though they were all added by commit 15f519e9f883 ("ceph: fix race condition validating r_parent before applying state"). The ones without initializer are suspectible to random crashes. (I can imagine it could even be possible to exploit this bug to elevate privileges.) Unfortunately, these Ceph functions are undocumented and its semantics can only be derived from the code. I see that ceph_mdsc_build_path() initializes the structure only on success, but not on error. Calling ceph_mdsc_free_path_info() after a failed ceph_mdsc_build_path() call does not even make sense, but that's what all callers do, and for it to be safe, the structure must be zero-initialized. The least intrusive approach to fix this is therefore to add initializers everywhere.

Affected

Product or packageVersionsReported by
Linux Linuxfrom db378e6f83ec705c6091c65d482d555edc2b0a72 before 644b47f0574fd82aeb9d00317eca8d1f2a525c8c, from 15f519e9f883b316d86e2bb6b767a023aafd9d83 before 8be8911f590813e6f90bc6407ced1b23e50bc5da, from 15f519e9f883b316d86e2bb6b767a023aafd9d83 before 453df1f4535842bf17ff1885a225e153d7ee3374, from 15f519e9f883b316d86e2bb6b767a023aafd9d83 before 43323a5934b660afae687e8e4e95ac328615a5c4, dc5aad078abc416dd3d555c50f5308c16ba918a7, 2bfe45987eb346e299d9f763f9cd05f77011519f, from 6.12.48 before 6.12.78, from 6.6.160 before 6.7 and 2 more
Not affected: before 6.17, from 6.12.78 up to 6.12.*, from 6.18.19 up to 6.18.*, from 6.19.9 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.12.48 before 6.12.78, from 6.16.8 before 6.17, from 6.17.1 before 6.18.19, from 6.19 before 6.19.9, 6.17, 7.0NVD

Classification

CWE-457CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ceph: add a bunch of missing ceph_path_info initializers ceph_mdsc_build_path() must be called with a zero-initialized ceph_path_info parameter, or else the following ceph_mdsc_free_path_info() may crash. Example crash (on Linux 6.18.12): virt_to_cache: Object is not a Slab page! WARNING: CPU: 184 PID: 2871736 at mm/slub.c:6732 kmem_cache_free+0x316/0x400 [...] Call Trace: [...] ceph_open+0x13d/0x3e0 do_dentry_open+0x134/0x480 vfs_open+0x2a/0xe0 path_openat+0x9a3/0x1160 [...] cache_from_obj: Wrong slab cache. names_cache but object is from ceph_inode_info WARNING: CPU: 184 PID: 2871736 at mm/slub.c:6746 kmem_cache_free+0x2dd/0x400 [...] kernel BUG at mm/slub.c:634! Oops: invalid opcode: 0000 [#1] SMP NOPTI RIP: 0010:__slab_free+0x1a4/0x350 Some of the ceph_mdsc_build_path() callers had initializers, but others had not, even though they were all added by commit 15f519e9f883 ("ceph: fix race condition validating r_parent before applying state"). The ones without initializer are suspectible to random crashes. (I can imagine it could even be possible to exploit this bug to elevate privileges.) Unfortunately, these Ceph functions are undocumented and its semantics can only be derived from the code. I see that ceph_mdsc_build_path() initializes the structure only on success, but not on error. Calling ceph_mdsc_free_path_info() after a failed ceph_mdsc_build_path() call does not even make sense, but that's what all callers do, and for it to be safe, the structure must be zero-initialized. The least intrusive approach to fix this is therefore to add initializers everywhere.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ceph: añadir un montón de inicializadores ceph_path_info faltantes ceph_mdsc_build_path() debe ser llamada con un parámetro ceph_path_info inicializado a cero, o de lo contrario la siguiente ceph_mdsc_free_path_info() podría fallar. Ejemplo de fallo (en Linux 6.18.12): virt_to_cache: ¡El objeto no es una página Slab! WARNING: CPU: 184 PID: 2871736 at mm/slub.c:6732 kmem_cache_free+0x316/0x400 [...] Traza de llamada: [...] ceph_open+0x13d/0x3e0 do_dentry_open+0x134/0x480 vfs_open+0x2a/0xe0 path_openat+0x9a3/0x 1160 [...] cache_from_obj: Caché de slab incorrecta. names_cache pero el objeto es de ceph_inode_info WARNING: CPU: 184 PID: 2871736 at mm/slub.c:6746 kmem_cache_free+0x2dd/0x400 [...] ¡BUG del kernel en mm/slub.c:634! Oops: código de operación inválido: 0000 [#1] SMP NOPTI RIP: 0010:__slab_free+0x1a4/0x350 Algunos de los llamadores de ceph_mdsc_build_path() tenían inicializadores, pero otros no, a pesar de que todos fueron añadidos por el commit 15f519e9f883 (’ceph: corregir condición de carrera al validar r_parent antes de aplicar el estado’). Los que no tienen inicializador son susceptibles a fallos aleatorios. (Puedo imaginar que incluso podría ser posible exploit este error para elevar privilegios). Desafortunadamente, estas funciones de Ceph no están documentadas y su semántica solo puede derivarse del código. Veo que ceph_mdsc_build_path() inicializa la estructura solo en caso de éxito, pero no en caso de error. Llamar a ceph_mdsc_free_path_info() después de una llamada fallida a ceph_mdsc_build_path() ni siquiera tiene sentido, pero eso es lo que hacen todos los llamadores, y para que sea seguro, la estructura debe ser inicializada a cero. El enfoque menos intrusivo para solucionar esto es, por lo tanto, añadir inicializadores en todas partes.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43408 changed 2026-10-21CVE Terms of Use
NVDCVE-2026-43408 changed 2026-11-11Public domain