{"id":"CVE-2024-53151","aliases":["CVE-2024-53151"],"related":[],"kind":"vulnerability","state":"published","title":"svcrdma: Address an integer overflow","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsvcrdma: Address an integer overflow\n\nDan Carpenter reports:\n> Commit 78147ca8b4a9 (\"svcrdma: Add a \"parsed chunk list\" data\n> structure\") from Jun 22, 2020 (linux-next), leads to the following\n> Smatch static checker warning:\n>\n>\tnet/sunrpc/xprtrdma/svc_rdma_recvfrom.c:498 xdr_check_write_chunk()\n>\twarn: potential user controlled sizeof overflow 'segcount * 4 * 4'\n>\n> net/sunrpc/xprtrdma/svc_rdma_recvfrom.c\n>     488 static bool xdr_check_write_chunk(struct svc_rdma_recv_ctxt *rctxt)\n>     489 {\n>     490         u32 segcount;\n>     491         __be32 *p;\n>     492\n>     493         if (xdr_stream_decode_u32(&rctxt->rc_stream, &segcount))\n>                                                               ^^^^^^^^\n>\n>     494                 return false;\n>     495\n>     496         /* A bogus segcount causes this buffer overflow check to fail. */\n>     497         p = xdr_inline_decode(&rctxt->rc_stream,\n> --> 498                               segcount * rpcrdma_segment_maxsz * sizeof(*p));\n>\n>\n> segcount is an untrusted u32.  On 32bit systems anything >= SIZE_MAX / 16 will\n> have an integer overflow and some those values will be accepted by\n> xdr_inline_decode().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsvcrdma: Address an integer overflow\n\nDan Carpenter reports:\n> Commit 78147ca8b4a9 (\"svcrdma: Add a \"parsed chunk list\" data\n> structure\") from Jun 22, 2020 (linux-next), leads to the following\n> Smatch static checker warning:\n>\n>\tnet/sunrpc/xprtrdma/svc_rdma_recvfrom.c:498 xdr_check_write_chunk()\n>\twarn: potential user controlled sizeof overflow 'segcount * 4 * 4'\n>\n> net/sunrpc/xprtrdma/svc_rdma_recvfrom.c\n>     488 static bool xdr_check_write_chunk(struct svc_rdma_recv_ctxt *rctxt)\n>     489 {\n>     490         u32 segcount;\n>     491         __be32 *p;\n>     492\n>     493         if (xdr_stream_decode_u32(&rctxt->rc_stream, &segcount))\n>                                                               ^^^^^^^^\n>\n>     494                 return false;\n>     495\n>     496         /* A bogus segcount causes this buffer overflow check to fail. */\n>     497         p = xdr_inline_decode(&rctxt->rc_stream,\n> --> 498                               segcount * rpcrdma_segment_maxsz * sizeof(*p));\n>\n>\n> segcount is an untrusted u32.  On 32bit systems anything >= SIZE_MAX / 16 will\n> have an integer overflow and some those values will be accepted by\n> xdr_inline_decode().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: svcrdma: soluciona un desbordamiento de enteros Dan Carpenter informa: &gt; Commit 78147ca8b4a9 (\"svcrdma: agrega una estructura de datos de lista de fragmentos analizados\") del 22 de junio de 2020 (linux-next ), conduce a la siguiente &gt; Advertencia del comprobador estático Smatch: &gt; &gt; net/sunrpc/xprtrdma/svc_rdma_recvfrom.c:498 xdr_check_write_chunk() &gt; advertencia: tamaño de desbordamiento potencial controlado por el usuario 'segcount * 4 * 4' &gt; &gt; net/sunrpc/xprtrdma/svc_rdma_recvfrom.c &gt; 488 static bool xdr_check_write_chunk(struct svc_rdma_recv_ctxt *rctxt) &gt; 489 { &gt; 490 u32 segcount; &gt; 491 __be32 *p; &gt; 492 &gt; 493 if (xdr_stream_decode_u32(&amp;rctxt-&gt;rc_stream, &amp;segcount)) &gt; ^^^^^^^^ &gt; &gt; 494 devuelve falso; &gt; 495 &gt; 496 /* Un recuento de segmentos falso provoca que esta comprobación de desbordamiento del búfer falle. */&gt; 497 p = xdr_inline_decode(&amp;rctxt-&gt;rc_stream, &gt; --&gt; 498 segcount * rpcrdma_segment_maxsz * sizeof(*p)); &gt; &gt; &gt; segcount es un u32 que no es de confianza. En sistemas de 32 bits, cualquier cosa &gt;= TAMAÑO_MAX / 16 tendrá &gt; un desbordamiento de enteros y algunos de esos valores serán aceptados por &gt; xdr_inline_decode().","source":"nvd"}],"published":"2024-12-24T11:28:50.917Z","modified":"2026-08-05T11:44:11.228Z","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"},{"scorer":"CISA-ADP","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"},{"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-190"],"affected":[{"ranges":[{"type":"git","introduced":"78147ca8b4a9b6cf0e597ddd6bf17959e08376c2","fixed":"21e1cf688fb0397788c8dd42e1e0b08d58ac5c7b","status":"affected"},{"type":"git","introduced":"78147ca8b4a9b6cf0e597ddd6bf17959e08376c2","fixed":"c1f8195bf68edd2cef0f18a4cead394075a54b5a","status":"affected"},{"type":"git","introduced":"78147ca8b4a9b6cf0e597ddd6bf17959e08376c2","fixed":"838dd342962cef4c320632a5af48d3c31f2f9877","status":"affected"},{"type":"git","introduced":"78147ca8b4a9b6cf0e597ddd6bf17959e08376c2","fixed":"4cbc3ba6dc2f746497cade60bcbaa82ae3696689","status":"affected"},{"type":"git","introduced":"78147ca8b4a9b6cf0e597ddd6bf17959e08376c2","fixed":"e5c440c227ecdc721f2da0dd88b6358afd1031a7","status":"affected"},{"type":"git","introduced":"78147ca8b4a9b6cf0e597ddd6bf17959e08376c2","fixed":"3c63d8946e578663b868cb9912dac616ea68bfd0","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.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.120","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.64","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.11","lastAffected":"6.11.*","status":"unaffected"},{"type":"semver","introduced":"6.12.2","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","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.174"},{"status":"affected","introduced":"5.16","fixed":"6.1.120"},{"status":"affected","introduced":"6.2","fixed":"6.6.64"},{"status":"affected","introduced":"6.7","fixed":"6.11.11"},{"status":"affected","introduced":"6.12","fixed":"6.12.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/21e1cf688fb0397788c8dd42e1e0b08d58ac5c7b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c1f8195bf68edd2cef0f18a4cead394075a54b5a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/838dd342962cef4c320632a5af48d3c31f2f9877","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4cbc3ba6dc2f746497cade60bcbaa82ae3696689","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e5c440c227ecdc721f2da0dd88b6358afd1031a7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c63d8946e578663b868cb9912dac616ea68bfd0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T20:09:46.736Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53151","url":"https://www.cve.org/CVERecord?id=CVE-2024-53151","licence":"CVE Terms of Use","modified":"2026-08-05T11:44:11.228Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53151","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53151","licence":"Public domain","modified":"2026-08-04T11:21:59.097Z"}],"updatedAt":"2026-11-25T22:58:50.344Z","epss":{"score":0.00643,"percentile":0.52119,"date":"2026-12-01T12:00:22.000Z"}}