{"id":"DEBIAN-CVE-2023-52835","details":"In the Linux kernel, the following vulnerability has been resolved:  perf/core: Bail out early if the request AUX area is out of bound  When perf-record with a large AUX area, e.g 4GB, it fails with:      #perf record -C 0 -m ,4G -e arm_spe_0// -- sleep 1     failed to mmap with 12 (Cannot allocate memory)  and it reveals a WARNING with __alloc_pages():  \t------------[ cut here ]------------ \tWARNING: CPU: 44 PID: 17573 at mm/page_alloc.c:5568 __alloc_pages+0x1ec/0x248 \tCall trace: \t __alloc_pages+0x1ec/0x248 \t __kmalloc_large_node+0xc0/0x1f8 \t __kmalloc_node+0x134/0x1e8 \t rb_alloc_aux+0xe0/0x298 \t perf_mmap+0x440/0x660 \t mmap_region+0x308/0x8a8 \t do_mmap+0x3c0/0x528 \t vm_mmap_pgoff+0xf4/0x1b8 \t ksys_mmap_pgoff+0x18c/0x218 \t __arm64_sys_mmap+0x38/0x58 \t invoke_syscall+0x50/0x128 \t el0_svc_common.constprop.0+0x58/0x188 \t do_el0_svc+0x34/0x50 \t el0_svc+0x34/0x108 \t el0t_64_sync_handler+0xb8/0xc0 \t el0t_64_sync+0x1a4/0x1a8  'rb-\u003eaux_pages' allocated by kcalloc() is a pointer array which is used to maintains AUX trace pages. The allocated page for this array is physically contiguous (and virtually contiguous) with an order of 0..MAX_ORDER. If the size of pointer array crosses the limitation set by MAX_ORDER, it reveals a WARNING.  So bail out early with -ENOMEM if the request AUX area is out of bound, e.g.:      #perf record -C 0 -m ,4G -e arm_spe_0// -- sleep 1     failed to mmap with 12 (Cannot allocate memory)","modified":"2026-08-07T07:03:35.537936657Z","published":"2024-05-21T16:15:21.023Z","upstream":["CVE-2023-52835"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-52835"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:11","purl":"pkg:deb/debian/linux?arch=source&distro=bullseye"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.10.205-1"}]}],"versions":["5.10.103-1","5.10.103-1~bpo10+1","5.10.106-1","5.10.113-1","5.10.120-1","5.10.120-1~bpo10+1","5.10.127-1","5.10.127-2","5.10.127-2~bpo10+1","5.10.136-1","5.10.140-1","5.10.148-1","5.10.149-1","5.10.149-2","5.10.158-1","5.10.158-2","5.10.162-1","5.10.178-1","5.10.178-2","5.10.178-3","5.10.179-1","5.10.179-2","5.10.179-3","5.10.179-4","5.10.179-5","5.10.191-1","5.10.197-1","5.10.46-4","5.10.46-5","5.10.70-1","5.10.70-1~bpo10+1","5.10.84-1","5.10.92-1","5.10.92-1~bpo10+1","5.10.92-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52835.json"}},{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.64-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52835.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.8-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52835.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.8-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52835.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}