{"id":"CVE-2025-40269","aliases":["CVE-2025-40269"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: usb-audio: Fix potential overflow of PCM transfer buffer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Fix potential overflow of PCM transfer buffer\n\nThe PCM stream data in USB-audio driver is transferred over USB URB\npacket buffers, and each packet size is determined dynamically.  The\npacket sizes are limited by some factors such as wMaxPacketSize USB\ndescriptor.  OTOH, in the current code, the actually used packet sizes\nare determined only by the rate and the PPS, which may be bigger than\nthe size limit above.  This results in a buffer overflow, as reported\nby syzbot.\n\nBasically when the limit is smaller than the calculated packet size,\nit implies that something is wrong, most likely a weird USB\ndescriptor.  So the best option would be just to return an error at\nthe parameter setup time before doing any further operations.\n\nThis patch introduces such a sanity check, and returns -EINVAL when\nthe packet size is greater than maxpacksize.  The comparison with\nep->packsize[1] alone should suffice since it's always equal or\ngreater than ep->packsize[0].","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Fix potential overflow of PCM transfer buffer\n\nThe PCM stream data in USB-audio driver is transferred over USB URB\npacket buffers, and each packet size is determined dynamically.  The\npacket sizes are limited by some factors such as wMaxPacketSize USB\ndescriptor.  OTOH, in the current code, the actually used packet sizes\nare determined only by the rate and the PPS, which may be bigger than\nthe size limit above.  This results in a buffer overflow, as reported\nby syzbot.\n\nBasically when the limit is smaller than the calculated packet size,\nit implies that something is wrong, most likely a weird USB\ndescriptor.  So the best option would be just to return an error at\nthe parameter setup time before doing any further operations.\n\nThis patch introduces such a sanity check, and returns -EINVAL when\nthe packet size is greater than maxpacksize.  The comparison with\nep->packsize[1] alone should suffice since it's always equal or\ngreater than ep->packsize[0].","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nALSA: usb-audio: Corregir posible desbordamiento de búfer de transferencia PCM\n\nLos datos del flujo PCM en el controlador USB?audio se transfieren mediante búferes de paquetes USB URB, y cada tamaño de paquete se determina dinámicamente. Los tamaños de paquete están limitados por algunos factores, como el descriptor USB?wMaxPacketSize. Por otro lado, en el código actual, los tamaños de paquete realmente utilizados se determinan solo por la tasa y el PPS, lo que puede ser mayor que el límite mencionado. Esto produce un desbordamiento de búfer, según lo reportado por syzbot.\n\nBásicamente, cuando el límite es más pequeño que el tamaño de paquete calculado, implica que algo está mal, lo más probable es un descriptor USB extraño. Por lo tanto, la mejor opción sería simplemente devolver un error en el momento de la configuración del parámetro antes de realizar cualquier operación posterior.\n\nEste parche introduce dicha comprobación de saneamiento y devuelve??EINVAL cuando el tamaño de paquete es mayor que?maxpacksize. La comparación con?ep -> packsize[1]?por sí sola debería ser suficiente, ya que siempre es igual o mayor que?ep -> packsize[0].","source":"nvd"}],"published":"2025-12-06T21:50:50.229Z","modified":"2026-10-15T19:10:00.173Z","severity":{"scorer":"Linux","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":"Linux","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":[],"affected":[{"ranges":[{"type":"git","introduced":"02c56650f3c118d3752122996d96173d26bb13aa","fixed":"480a1490c595a242f27493a4544b3efb21b29f6a","status":"affected"},{"type":"git","introduced":"5ef30e443e6d3654cccecec99cf481a69a0a6d3b","fixed":"ab0b5e92fc36ee82c1bd01fe896d0f775ed5de41","status":"affected"},{"type":"git","introduced":"99703c921864a318e3e8aae74fde071b1ff35bea","fixed":"282aba56713bbc58155716b55ca7222b2d9cf3c8","status":"affected"},{"type":"git","introduced":"2d50acd7dbd0682a56968ad9551341d7fc5b6eaf","fixed":"c4dc012b027c9eb101583011089dea14d744e314","status":"affected"},{"type":"git","introduced":"aba41867dd66939d336fdf604e4d73b805d8039f","fixed":"e0ed5a36fb3ab9e7b9ee45cd17f09f6d5f594360","status":"affected"},{"type":"git","introduced":"d288dc74f8cf95cb7ae0aaf245b7128627a49bf3","fixed":"d67dde02049e632ba58d3c44a164a74b6a737154","status":"affected"},{"type":"git","introduced":"f0bd62b64016508938df9babe47f65c2c727d25c","fixed":"6a5da3fa80affc948923f20a4e086177f505e86e","status":"affected"},{"type":"git","introduced":"f0bd62b64016508938df9babe47f65c2c727d25c","fixed":"217d47255a2ec8b246f2725f5db9ac3f1d4109d7","status":"affected"},{"type":"git","introduced":"f0bd62b64016508938df9babe47f65c2c727d25c","fixed":"ef592bf2232a2daa9fffa8881881fc9957ea56e9","status":"affected"},{"type":"git","introduced":"f0bd62b64016508938df9babe47f65c2c727d25c","fixed":"ece3b981bb6620e47fac826a2156c090b1a936a0","status":"affected"},{"type":"git","introduced":"f0bd62b64016508938df9babe47f65c2c727d25c","fixed":"98e9d5e33bda8db875cc1a4fe99c192658e45ab6","status":"affected"},{"type":"git","introduced":"f0bd62b64016508938df9babe47f65c2c727d25c","fixed":"d2c04f20ccc6c0d219e6d3038bab45bc66a178ad","status":"affected"},{"type":"git","introduced":"f0bd62b64016508938df9babe47f65c2c727d25c","fixed":"05a1fc5efdd8560f34a3af39c9cf1e1526cc3ddf","status":"affected"},{"type":"semver","introduced":"4.4.229","fixed":"4.4.230","status":"affected"},{"type":"semver","introduced":"4.9.229","fixed":"4.9.230","status":"affected"},{"type":"semver","introduced":"4.14.186","fixed":"4.14.188","status":"affected"},{"type":"semver","introduced":"4.19.130","fixed":"4.19.132","status":"affected"},{"type":"semver","introduced":"5.4.49","fixed":"5.4.51","status":"affected"},{"type":"semver","introduced":"5.7.6","fixed":"5.7.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"4.4.230","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.230","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.188","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.132","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.51","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.7.8","lastAffected":"5.7.*","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.59","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.9","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/480a1490c595a242f27493a4544b3efb21b29f6a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab0b5e92fc36ee82c1bd01fe896d0f775ed5de41","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/282aba56713bbc58155716b55ca7222b2d9cf3c8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4dc012b027c9eb101583011089dea14d744e314","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0ed5a36fb3ab9e7b9ee45cd17f09f6d5f594360","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d67dde02049e632ba58d3c44a164a74b6a737154","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a5da3fa80affc948923f20a4e086177f505e86e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/217d47255a2ec8b246f2725f5db9ac3f1d4109d7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef592bf2232a2daa9fffa8881881fc9957ea56e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ece3b981bb6620e47fac826a2156c090b1a936a0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98e9d5e33bda8db875cc1a4fe99c192658e45ab6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2c04f20ccc6c0d219e6d3038bab45bc66a178ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/05a1fc5efdd8560f34a3af39c9cf1e1526cc3ddf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-16T20:14:17.883Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40269","url":"https://www.cve.org/CVERecord?id=CVE-2025-40269","licence":"CVE Terms of Use","modified":"2026-08-05T12:09:02.371Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40269","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40269","licence":"Public domain","modified":"2026-10-15T19:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:08.372Z","epss":{"score":0.0019,"percentile":0.09075,"date":"2026-12-01T12:00:22.000Z"}}