{"id":"CVE-2021-47511","details":"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.","modified":"2026-03-13T05:20:47.421245Z","published":"2024-05-24T15:15:12.237Z","related":["SUSE-SU-2024:1978-1","SUSE-SU-2024:1979-1","SUSE-SU-2024:1983-1","SUSE-SU-2024:2008-1","SUSE-SU-2024:2010-1","SUSE-SU-2024:2011-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2183-1","SUSE-SU-2024:2184-1","SUSE-SU-2024:2185-1","SUSE-SU-2024:2189-1","SUSE-SU-2024:2190-1","SUSE-SU-2025:01995-1","SUSE-SU-2025:0645-1","SUSE-SU-2025:0667-1"],"references":[{"type":"FIX","url":"https://git.kernel.org/stable/c/f96c0959c1ee92adc911c10d6ec209af50105049"},{"type":"FIX","url":"https://git.kernel.org/stable/c/00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc"},{"type":"FIX","url":"https://git.kernel.org/stable/c/02b2b691b77cd7b951fa7b6c9d44d4e472cdc823"},{"type":"FIX","url":"https://git.kernel.org/stable/c/502e1146873d870f87da3b8f93d6bf2de5f38d0c"},{"type":"FIX","url":"https://git.kernel.org/stable/c/8af815ab052eaf74addbbfb556d63ce2137c0e1b"},{"type":"FIX","url":"https://git.kernel.org/stable/c/9d2479c960875ca1239bcb899f386970c13d9cfe"},{"type":"FIX","url":"https://git.kernel.org/stable/c/be8869d388593e57223ad39297c8e54be632f2f2"},{"type":"FIX","url":"https://git.kernel.org/stable/c/f12c8a7515f641885677960af450082569a87243"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47511.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"4.4.295"}]},{"events":[{"introduced":"4.5"},{"fixed":"4.9.293"}]},{"events":[{"introduced":"4.10"},{"fixed":"4.14.258"}]},{"events":[{"introduced":"4.15"},{"fixed":"4.19.221"}]},{"events":[{"introduced":"4.20"},{"fixed":"5.4.165"}]},{"events":[{"introduced":"5.5"},{"fixed":"5.10.85"}]},{"events":[{"introduced":"5.11"},{"fixed":"5.15.8"}]},{"events":[{"introduced":"0"},{"last_affected":"5.16-rc1"}]},{"events":[{"introduced":"0"},{"last_affected":"5.16-rc2"}]},{"events":[{"introduced":"0"},{"last_affected":"5.16-rc3"}]},{"events":[{"introduced":"0"},{"last_affected":"5.16-rc4"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}