{"id":"CVE-2021-47511","aliases":["CVE-2021-47511"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: pcm: oss: Fix negative period/buffer sizes","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: oss: Fix negative period/buffer sizes\n\nThe period size calculation in OSS layer may receive a negative value\nas an error, but the code there assumes only the positive values and\nhandle them with size_t.  Due to that, a too big value may be passed\nto the lower layers.\n\nThis patch changes the code to handle with ssize_t and adds the proper\nerror checks appropriately.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: oss: Fix negative period/buffer sizes\n\nThe period size calculation in OSS layer may receive a negative value\nas an error, but the code there assumes only the positive values and\nhandle them with size_t.  Due to that, a too big value may be passed\nto the lower layers.\n\nThis patch changes the code to handle with ssize_t and adds the proper\nerror checks appropriately.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: pcm: oss: corrige tamaños de período/búfer negativos El cálculo del tamaño del período en la capa OSS puede recibir un valor negativo como error, pero el código allí asume solo los valores positivos y manejarlos con size_t. Debido a esto, es posible que se pase un valor demasiado grande a las capas inferiores. Este parche cambia el código para manejar con ssize_t y agrega las comprobaciones de errores adecuadas.","source":"nvd"}],"published":"2024-05-24T15:09:26.695Z","modified":"2026-06-17T04:17:39.697Z","severity":{"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"},"severities":[{"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":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"be8869d388593e57223ad39297c8e54be632f2f2","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"502e1146873d870f87da3b8f93d6bf2de5f38d0c","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"8af815ab052eaf74addbbfb556d63ce2137c0e1b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"f96c0959c1ee92adc911c10d6ec209af50105049","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"f12c8a7515f641885677960af450082569a87243","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"02b2b691b77cd7b951fa7b6c9d44d4e472cdc823","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9d2479c960875ca1239bcb899f386970c13d9cfe","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"4.4.295","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.293","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.258","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.221","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.165","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.85","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.8","lastAffected":"5.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.16","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","fixed":"4.4.295"},{"status":"affected","introduced":"4.5","fixed":"4.9.293"},{"status":"affected","introduced":"4.10","fixed":"4.14.258"},{"status":"affected","introduced":"4.15","fixed":"4.19.221"},{"status":"affected","introduced":"4.20","fixed":"5.4.165"},{"status":"affected","introduced":"5.5","fixed":"5.10.85"},{"status":"affected","introduced":"5.11","fixed":"5.15.8"},{"status":"affected","version":"5.16"},{"status":"affected","version":"5.16"},{"status":"affected","version":"5.16"},{"status":"affected","version":"5.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/be8869d388593e57223ad39297c8e54be632f2f2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/502e1146873d870f87da3b8f93d6bf2de5f38d0c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8af815ab052eaf74addbbfb556d63ce2137c0e1b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f96c0959c1ee92adc911c10d6ec209af50105049","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f12c8a7515f641885677960af450082569a87243","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02b2b691b77cd7b951fa7b6c9d44d4e472cdc823","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d2479c960875ca1239bcb899f386970c13d9cfe","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-29T17:05:32.798Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47511","url":"https://www.cve.org/CVERecord?id=CVE-2021-47511","licence":"CVE Terms of Use","modified":"2026-05-11T13:56:04.547Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47511","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47511","licence":"Public domain","modified":"2026-06-17T04:17:39.697Z"}],"updatedAt":"2026-11-25T22:58:08.893Z","epss":{"score":0.0024,"percentile":0.16167,"date":"2026-12-01T12:00:22.000Z"}}