{"id":"CVE-2024-50280","aliases":["CVE-2024-50280"],"related":[],"kind":"vulnerability","state":"published","title":"dm cache: fix flushing uninitialized delayed_work on cache_ctr error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm cache: fix flushing uninitialized delayed_work on cache_ctr error\n\nAn unexpected WARN_ON from flush_work() may occur when cache creation\nfails, caused by destroying the uninitialized delayed_work waker in the\nerror path of cache_create(). For example, the warning appears on the\nsuperblock checksum error.\n\nReproduce steps:\n\ndmsetup create cmeta --table \"0 8192 linear /dev/sdc 0\"\ndmsetup create cdata --table \"0 65536 linear /dev/sdc 8192\"\ndmsetup create corig --table \"0 524288 linear /dev/sdc 262144\"\ndd if=/dev/urandom of=/dev/mapper/cmeta bs=4k count=1 oflag=direct\ndmsetup create cache --table \"0 524288 cache /dev/mapper/cmeta \\\n/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0\"\n\nKernel logs:\n\n(snip)\nWARNING: CPU: 0 PID: 84 at kernel/workqueue.c:4178 __flush_work+0x5d4/0x890\n\nFix by pulling out the cancel_delayed_work_sync() from the constructor's\nerror path. This patch doesn't affect the use-after-free fix for\nconcurrent dm_resume and dm_destroy (commit 6a459d8edbdb (\"dm cache: Fix\nUAF in destroy()\")) as cache_dtr is not changed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm cache: fix flushing uninitialized delayed_work on cache_ctr error\n\nAn unexpected WARN_ON from flush_work() may occur when cache creation\nfails, caused by destroying the uninitialized delayed_work waker in the\nerror path of cache_create(). For example, the warning appears on the\nsuperblock checksum error.\n\nReproduce steps:\n\ndmsetup create cmeta --table \"0 8192 linear /dev/sdc 0\"\ndmsetup create cdata --table \"0 65536 linear /dev/sdc 8192\"\ndmsetup create corig --table \"0 524288 linear /dev/sdc 262144\"\ndd if=/dev/urandom of=/dev/mapper/cmeta bs=4k count=1 oflag=direct\ndmsetup create cache --table \"0 524288 cache /dev/mapper/cmeta \\\n/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0\"\n\nKernel logs:\n\n(snip)\nWARNING: CPU: 0 PID: 84 at kernel/workqueue.c:4178 __flush_work+0x5d4/0x890\n\nFix by pulling out the cancel_delayed_work_sync() from the constructor's\nerror path. This patch doesn't affect the use-after-free fix for\nconcurrent dm_resume and dm_destroy (commit 6a459d8edbdb (\"dm cache: Fix\nUAF in destroy()\")) as cache_dtr is not changed.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: dm cache: fix flushing uninitialized delayed_work on cache_ctr error Se puede producir un WARN_ON inesperado de flush_work() cuando falla la creación de caché, causado por la destrucción del activador delayed_work no inicializado en la ruta de error de cache_create(). Por ejemplo, la advertencia aparece en el error de suma de comprobación del superbloque. Reproducir los pasos: dmsetup create cmeta --table \"0 8192 linear /dev/sdc 0\" dmsetup create cdata --table \"0 65536 linear /dev/sdc 8192\" dmsetup create corig --table \"0 524288 linear /dev/sdc 262144\" dd if=/dev/urandom of=/dev/mapper/cmeta bs=4k count=1 oflag=direct dmsetup create cache --table \"0 524288 cache /dev/mapper/cmeta \\ /dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0\" Registros del kernel: (fragmento) ADVERTENCIA: CPU: 0 PID: 84 en kernel/workqueue.c:4178 __flush_work+0x5d4/0x890 Se soluciona extrayendo cancel_delayed_work_sync() de la ruta de error del constructor. Este parche no afecta la corrección de use-after-free para dm_resume y dm_destroy simultáneos (commit 6a459d8edbdb (\"dm cache: Fix UAF in destroy()\")) ya que cache_dtr no se modifica.","source":"nvd"}],"published":"2024-11-19T01:30:21.999Z","modified":"2026-06-17T08:04:05.653Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"2b17026685a270b2beaf1cdd9857fcedd3505c7e","fixed":"40fac0271c7aedf60d81ed8214e80851e5b26312","status":"affected"},{"type":"git","introduced":"d2a0b298ebf83ab6236f66788a3541e91ce75a70","fixed":"d154b333a5667b6c1b213a11a41ad7aaccd10c3d","status":"affected"},{"type":"git","introduced":"6a3e412c2ab131c54945327a7676b006f000a209","fixed":"5a754d3c771280f2d06bf8ab716d6a0d36ca256e","status":"affected"},{"type":"git","introduced":"6a459d8edbdbe7b24db42a5a9f21e6aa9e00c2aa","fixed":"8cc12dab635333c4ea28e72d7b947be7d0543c2c","status":"affected"},{"type":"git","introduced":"6a459d8edbdbe7b24db42a5a9f21e6aa9e00c2aa","fixed":"aee3ecda73ce13af7c3e556383342b57e6bd0718","status":"affected"},{"type":"git","introduced":"6a459d8edbdbe7b24db42a5a9f21e6aa9e00c2aa","fixed":"135496c208ba26fd68cdef10b64ed7a91ac9a7ff","status":"affected"},{"type":"git","version":"034cbc8d3b47a56acd89453c29632a9c117de09d","status":"affected"},{"type":"git","version":"993406104d2b28fe470126a062ad37a1e21e792e","status":"affected"},{"type":"git","version":"4d20032dd90664de09f2902a7ea49ae2f7771746","status":"affected"},{"type":"git","version":"2f097dfac7579fd84ff98eb1d3acd41d53a485f3","status":"affected"},{"type":"git","version":"6ac4f36910764cb510bafc4c3768544f86ca48ca","status":"affected"},{"type":"semver","introduced":"5.10.163","fixed":"5.10.237","status":"affected"},{"type":"semver","introduced":"5.15.87","fixed":"5.15.181","status":"affected"},{"type":"semver","introduced":"6.1.4","fixed":"6.1.117","status":"affected"},{"type":"semver","introduced":"4.9.337","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.303","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.270","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.229","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.0.18","fixed":"6.1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"5.10.237","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.181","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.117","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.61","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.8","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":"4.9.337","fixed":"4.10"},{"status":"affected","introduced":"4.14.303","fixed":"4.15"},{"status":"affected","introduced":"4.19.270","fixed":"4.20"},{"status":"affected","introduced":"5.4.229","fixed":"5.5"},{"status":"affected","introduced":"5.10.163","fixed":"5.11"},{"status":"affected","introduced":"5.15.87","fixed":"5.16"},{"status":"affected","introduced":"6.0.18","fixed":"6.1"},{"status":"affected","introduced":"6.1.4","fixed":"6.1.117"},{"status":"affected","introduced":"6.2","fixed":"6.6.61"},{"status":"affected","introduced":"6.7","fixed":"6.11.8"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/40fac0271c7aedf60d81ed8214e80851e5b26312","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d154b333a5667b6c1b213a11a41ad7aaccd10c3d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a754d3c771280f2d06bf8ab716d6a0d36ca256e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8cc12dab635333c4ea28e72d7b947be7d0543c2c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aee3ecda73ce13af7c3e556383342b57e6bd0718","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/135496c208ba26fd68cdef10b64ed7a91ac9a7ff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-12-11T14:25:27.627Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50280","url":"https://www.cve.org/CVERecord?id=CVE-2024-50280","licence":"CVE Terms of Use","modified":"2026-05-23T15:54:56.616Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50280","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50280","licence":"Public domain","modified":"2026-06-17T08:04:05.653Z"}],"updatedAt":"2026-11-25T22:58:48.410Z","epss":{"score":0.00253,"percentile":0.17993,"date":"2026-12-01T12:00:22.000Z"}}