{"id":11237,"date":"2026-09-04T18:53:06","date_gmt":"2026-09-04T10:53:06","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-74640"},"modified":"2026-09-04T18:53:06","modified_gmt":"2026-09-04T10:53:06","slug":"cve-2026-74640","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-74640","title":{"rendered":"CVE-2026-74640 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: FCP: fix OOB wr"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ALSA: FCP: fix OOB write in fcp_meter_ctl_get()<\/p>\n<p>fcp_ioctl_set_meter_map() bounds the user-supplied Level Meter map size<br \/>\nby the driver&#8217;s own limit of 255<\/p>\n<p>\tif (map.map_size  255 ||<br \/>\n\t    map.meter_slots  255)<br \/>\n\t\treturn -EINVAL;<\/p>\n<p>and passes it to fcp_add_new_ctl() as the control&#8217;s channel count, where<br \/>\nit is stored as elem-&gt;channels.<\/p>\n<p>Every control read writes into struct snd_ctl_elem_value, whose integer<br \/>\narray is declared long value[128], so the limit is 128, not 255.<br \/>\nfcp_meter_ctl_get() stores one 64-bit word per channel into that array<br \/>\nwith no bound of its own:<\/p>\n<p>\tfor (i = 0; i channels; i++) {<br \/>\n\t\tint idx = private-&gt;meter_level_map[i];<br \/>\n\t\tint value = idx value.integer.value[i] = value;<br \/>\n\t}<\/p>\n<p>snd_ctl_elem_read_user() serves that object from<br \/>\nmemdup_user(_control, sizeof(*control)), 1224 bytes on LP64 out of<br \/>\nkmalloc-2048.  offsetof(struct snd_ctl_elem_value, value) is 72, so<br \/>\nelement i is written at byte 72 + 8 * i and element 144 already lands<br \/>\npast the allocation.  At map_size 255 the last store ends at byte 2112,<br \/>\n888 bytes past the object and 64 bytes into the adjacent slab object.<br \/>\nThe stored words come from the device and meter_level_map[] selects<br \/>\nwhich word lands in which slot, so extent and contents are both<br \/>\ncontrolled.<\/p>\n<p>The core does not catch this.  snd_ctl_check_elem_info() is reached only<br \/>\nfrom __snd_ctl_elem_info(), which snd_ctl_elem_read() calls under<br \/>\nCONFIG_SND_CTL_DEBUG; without that option snd_ctl_skip_validation() is a<br \/>\ncompile-time true.  __snd_ctl_add_replace() validates kcontrol-&gt;count and<br \/>\nnever inspects elem-&gt;channels.<\/p>\n<p>Installing an oversized map needs CAP_SYS_RAWIO, but the control outlives<br \/>\nthe hwdep descriptor that created it, so the out-of-bounds stores are<br \/>\nissued by any process able to read controls on \/dev\/snd\/controlC0.<\/p>\n<p>KASAN on 7.2.0-rc5 (arm64), triggered by an unprivileged control read:<\/p>\n<p>  BUG: KASAN: slab-out-of-bounds in fcp_meter_ctl_get<br \/>\n  Write of size 8 at addr ffff000017af04c8 by task fcp_trigger\/185<br \/>\n   __asan_store8<br \/>\n   fcp_meter_ctl_get<br \/>\n   snd_ctl_elem_read<br \/>\n   snd_ctl_ioctl<br \/>\n  Allocated by task 185:<br \/>\n   memdup_user<br \/>\n   snd_ctl_ioctl<br \/>\n  The buggy address is located 0 bytes to the right of<br \/>\n   allocated 1224-byte region [ffff000017af0000, ffff000017af04c8)<\/p>\n<p>Bound the map size by the ABI limit rather than by 255, and bound the<br \/>\nstore loop at the sink so it cannot run past the value array whatever<br \/>\nelem-&gt;channels holds.<\/p>\n<p>Discovered by XBOW, triaged by Baul Lee <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ALSA: FCP: fix OOB write in fcp_meter_ctl_get()<\/p>\n<p>fcp_ioctl_set_meter_map() bounds the user-supplied Level Meter map size<br \/>\nby the dri<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-11237","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/11237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}