{"id":"CVE-2026-43405","aliases":["CVE-2026-43405"],"related":[],"kind":"vulnerability","state":"published","title":"libceph: Use u32 for non-negative values in ceph_monmap_decode()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: Use u32 for non-negative values in ceph_monmap_decode()\n\nThis patch fixes unnecessary implicit conversions that change signedness\nof blob_len and num_mon in ceph_monmap_decode().\nCurrently blob_len and num_mon are (signed) int variables. They are used\nto hold values that are always non-negative and get assigned in\nceph_decode_32_safe(), which is meant to assign u32 values. Both\nvariables are subsequently used as unsigned values, and the value of\nnum_mon is further assigned to monmap->num_mon, which is of type u32.\nTherefore, both variables should be of type u32. This is especially\nrelevant for num_mon. If the value read from the incoming message is\nvery large, it is interpreted as a negative value, and the check for\nnum_mon > CEPH_MAX_MON does not catch it. This leads to the attempt to\nallocate a very large chunk of memory for monmap, which will most likely\nfail. In this case, an unnecessary attempt to allocate memory is\nperformed, and -ENOMEM is returned instead of -EINVAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: Use u32 for non-negative values in ceph_monmap_decode()\n\nThis patch fixes unnecessary implicit conversions that change signedness\nof blob_len and num_mon in ceph_monmap_decode().\nCurrently blob_len and num_mon are (signed) int variables. They are used\nto hold values that are always non-negative and get assigned in\nceph_decode_32_safe(), which is meant to assign u32 values. Both\nvariables are subsequently used as unsigned values, and the value of\nnum_mon is further assigned to monmap->num_mon, which is of type u32.\nTherefore, both variables should be of type u32. This is especially\nrelevant for num_mon. If the value read from the incoming message is\nvery large, it is interpreted as a negative value, and the check for\nnum_mon > CEPH_MAX_MON does not catch it. This leads to the attempt to\nallocate a very large chunk of memory for monmap, which will most likely\nfail. In this case, an unnecessary attempt to allocate memory is\nperformed, and -ENOMEM is returned instead of -EINVAL.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nlibceph: Usar u32 para valores no negativos en ceph_monmap_decode()\n\nEste parche corrige conversiones implícitas innecesarias que cambian la signatura de blob_len y num_mon en ceph_monmap_decode(). Actualmente blob_len y num_mon son variables int (con signo). Se utilizan para contener valores que son siempre no negativos y se asignan en ceph_decode_32_safe(), que está destinada a asignar valores u32. Ambas variables se utilizan posteriormente como valores sin signo, y el valor de num_mon se asigna además a monmap  ->  num_mon, que es de tipo u32. Por lo tanto, ambas variables deberían ser de tipo u32. Esto es especialmente relevante para num_mon. Si el valor leído del mensaje entrante es muy grande, se interpreta como un valor negativo, y la comprobación de num_mon > CEPH_MAX_MON no lo detecta. Esto lleva al intento de asignar un trozo muy grande de memoria para monmap, lo cual muy probablemente fallará. En este caso, se realiza un intento innecesario de asignar memoria, y se devuelve -ENOMEM en lugar de -EINVAL.","source":"nvd"}],"published":"2026-05-08T14:21:45.581Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-190","CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"a5cbd5fc22d5043a8a76e15d75d031fe24d1f69c","fixed":"ee5588e2bc41acb73f6676c0520420c107cd0140","status":"affected"},{"type":"git","introduced":"a5cbd5fc22d5043a8a76e15d75d031fe24d1f69c","fixed":"86f7060cd638d6eb042e8ed780fb83a59ca0dcb3","status":"affected"},{"type":"git","introduced":"a5cbd5fc22d5043a8a76e15d75d031fe24d1f69c","fixed":"5f2806684b05bd24d05c091083b8e2517ba8ffac","status":"affected"},{"type":"git","introduced":"a5cbd5fc22d5043a8a76e15d75d031fe24d1f69c","fixed":"b268984ae88cb0dcd7a8e8263962c748448e26e8","status":"affected"},{"type":"git","introduced":"a5cbd5fc22d5043a8a76e15d75d031fe24d1f69c","fixed":"ba0a4df8c563536857dcbf7b4dbd0f2a15f57ace","status":"affected"},{"type":"git","introduced":"a5cbd5fc22d5043a8a76e15d75d031fe24d1f69c","fixed":"08bc6173fd611ad5a40f472bf5f15b92aea0fe40","status":"affected"},{"type":"git","introduced":"a5cbd5fc22d5043a8a76e15d75d031fe24d1f69c","fixed":"770444611f047dbfd4517ec0bc1b179d40c2f346","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.19","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.9","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":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.167"},{"status":"affected","introduced":"6.2","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.78"},{"status":"affected","introduced":"6.13","fixed":"6.18.19"},{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ee5588e2bc41acb73f6676c0520420c107cd0140","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86f7060cd638d6eb042e8ed780fb83a59ca0dcb3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f2806684b05bd24d05c091083b8e2517ba8ffac","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b268984ae88cb0dcd7a8e8263962c748448e26e8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba0a4df8c563536857dcbf7b4dbd0f2a15f57ace","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08bc6173fd611ad5a40f472bf5f15b92aea0fe40","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/770444611f047dbfd4517ec0bc1b179d40c2f346","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T15:17:06.278Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43405","url":"https://www.cve.org/CVERecord?id=CVE-2026-43405","licence":"CVE Terms of Use","modified":"2026-10-19T19:16:28.480Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43405","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43405","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.051Z","epss":{"score":0.00598,"percentile":0.49995,"date":"2026-12-01T12:00:22.000Z"}}