{"id":"CVE-2026-43271","aliases":["CVE-2026-43271"],"related":[],"kind":"vulnerability","state":"published","title":"md-cluster: fix NULL pointer dereference in process_metadata_update","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd-cluster: fix NULL pointer dereference in process_metadata_update\n\nThe function process_metadata_update() blindly dereferences the 'thread'\npointer (acquired via rcu_dereference_protected) within the wait_event()\nmacro.\n\nWhile the code comment states \"daemon thread must exist\", there is a valid\nrace condition window during the MD array startup sequence (md_run):\n\n1. bitmap_load() is called, which invokes md_cluster_ops->join().\n2. join() starts the \"cluster_recv\" thread (recv_daemon).\n3. At this point, recv_daemon is active and processing messages.\n4. However, mddev->thread (the main MD thread) is not initialized until\n   later in md_run().\n\nIf a METADATA_UPDATED message is received from a remote node during this\nspecific window, process_metadata_update() will be called while\nmddev->thread is still NULL, leading to a kernel panic.\n\nTo fix this, we must validate the 'thread' pointer. If it is NULL, we\nrelease the held lock (no_new_dev_lockres) and return early, safely\nignoring the update request as the array is not yet fully ready to\nprocess it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd-cluster: fix NULL pointer dereference in process_metadata_update\n\nThe function process_metadata_update() blindly dereferences the 'thread'\npointer (acquired via rcu_dereference_protected) within the wait_event()\nmacro.\n\nWhile the code comment states \"daemon thread must exist\", there is a valid\nrace condition window during the MD array startup sequence (md_run):\n\n1. bitmap_load() is called, which invokes md_cluster_ops->join().\n2. join() starts the \"cluster_recv\" thread (recv_daemon).\n3. At this point, recv_daemon is active and processing messages.\n4. However, mddev->thread (the main MD thread) is not initialized until\n   later in md_run().\n\nIf a METADATA_UPDATED message is received from a remote node during this\nspecific window, process_metadata_update() will be called while\nmddev->thread is still NULL, leading to a kernel panic.\n\nTo fix this, we must validate the 'thread' pointer. If it is NULL, we\nrelease the held lock (no_new_dev_lockres) and return early, safely\nignoring the update request as the array is not yet fully ready to\nprocess it.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nmd-cluster: corrección de desreferencia de puntero NULL en process_metadata_update\n\nLa función process_metadata_update() desreferencia ciegamente el puntero ’thread’ (adquirido a través de rcu_dereference_protected) dentro de la macro wait_event().\n\nAunque el comentario del código indica ’el hilo demonio debe existir’, existe una ventana de condición de carrera válida durante la secuencia de inicio del array MD (md_run):\n\n1. Se llama a bitmap_load(), lo que invoca a md_cluster_ops  ->  join().\n2. join() inicia el hilo ’cluster_recv’ (recv_daemon).\n3. En este punto, recv_daemon está activo y procesando mensajes.\n4. Sin embargo, mddev  ->  thread (el hilo MD principal) no se inicializa hasta más tarde en md_run().\n\nSi se recibe un mensaje METADATA_UPDATED de un nodo remoto durante esta ventana específica, process_metadata_update() será llamada mientras mddev  ->  thread sigue siendo NULL, lo que lleva a un pánico del kernel.\n\nPara solucionar esto, debemos validar el puntero ’thread’. Si es NULL, liberamos el bloqueo mantenido (no_new_dev_lockres) y retornamos anticipadamente, ignorando de forma segura la solicitud de actualización ya que el array aún no está completamente listo para procesarla.","source":"nvd"}],"published":"2026-05-06T11:28:55.507Z","modified":"2026-11-11T23:10:00.263Z","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":"0ba959774e93911caff596de6391f085fb640ac4","fixed":"b65ea893290056bee380d0c8eeb47797c2bcb311","status":"affected"},{"type":"git","introduced":"0ba959774e93911caff596de6391f085fb640ac4","fixed":"a61c1bc84c4a0f1e7c2fe55b0f43d7d94af4adf1","status":"affected"},{"type":"git","introduced":"0ba959774e93911caff596de6391f085fb640ac4","fixed":"dec123825c1ed74d98fd5fc7571a851dea4f46ff","status":"affected"},{"type":"git","introduced":"0ba959774e93911caff596de6391f085fb640ac4","fixed":"721599e837d3f4c0e6cc14da059612c017b6d3ec","status":"affected"},{"type":"git","introduced":"0ba959774e93911caff596de6391f085fb640ac4","fixed":"dceb5a843910004cb118148e267036104fc3ee43","status":"affected"},{"type":"git","introduced":"0ba959774e93911caff596de6391f085fb640ac4","fixed":"f150e753cb8dd756085f46e86f2c35ce472e0a3c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"4.12","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b65ea893290056bee380d0c8eeb47797c2bcb311","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a61c1bc84c4a0f1e7c2fe55b0f43d7d94af4adf1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dec123825c1ed74d98fd5fc7571a851dea4f46ff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/721599e837d3f4c0e6cc14da059612c017b6d3ec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dceb5a843910004cb118148e267036104fc3ee43","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f150e753cb8dd756085f46e86f2c35ce472e0a3c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:32:48.991Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43271","url":"https://www.cve.org/CVERecord?id=CVE-2026-43271","licence":"CVE Terms of Use","modified":"2026-11-06T15:42:45.853Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43271","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43271","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.760Z","epss":{"score":0.00117,"percentile":0.01821,"date":"2026-12-01T12:00:22.000Z"}}