{"id":"CVE-2022-48714","state":"PUBLISHED","title":"bpf: Use VM_MAP instead of VM_ALLOC for ringbuf","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use VM_MAP instead of VM_ALLOC for ringbuf\n\nAfter commit 2fd3fb0be1d1 (\"kasan, vmalloc: unpoison VM_ALLOC pages\nafter mapping\"), non-VM_ALLOC mappings will be marked as accessible\nin __get_vm_area_node() when KASAN is enabled. But now the flag for\nringbuf area is VM_ALLOC, so KASAN will complain out-of-bound access\nafter vmap() returns. Because the ringbuf area is created by mapping\nallocated pages, so use VM_MAP instead.\n\nAfter the change, info in /proc/vmallocinfo also changes from\n  [start]-[end]   24576 ringbuf_map_alloc+0x171/0x290 vmalloc user\nto\n  [start]-[end]   24576 ringbuf_map_alloc+0x171/0x290 vmap user","publishedAt":"2024-06-20T11:13:08.007Z","updatedAt":"2026-05-11T18:45:32.260Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"6304a613a97d6dcd49b93fbad31e9f39d1e138d6","versionType":"git"},{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"5e457aeab52a5947619e1f18047f4d2f3212b3eb","versionType":"git"},{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"d578933f6226d5419af9306746efa1c693cbaf9c","versionType":"git"},{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"b293dcc473d22a62dc6d78de2b15e4f49515db56","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/ringbuf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.99","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.22","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.8","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/ringbuf.c"]}],"references":["https://git.kernel.org/stable/c/6304a613a97d6dcd49b93fbad31e9f39d1e138d6","https://git.kernel.org/stable/c/5e457aeab52a5947619e1f18047f4d2f3212b3eb","https://git.kernel.org/stable/c/d578933f6226d5419af9306746efa1c693cbaf9c","https://git.kernel.org/stable/c/b293dcc473d22a62dc6d78de2b15e4f49515db56"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48714.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48714","state":"PUBLISHED","datePublished":"2024-06-20T11:13:08.007Z","dateUpdated":"2026-05-11T18:45:32.260Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-20T11:09:39.050Z"},"containers":{"cna":{"title":"bpf: Use VM_MAP instead of VM_ALLOC for ringbuf","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use VM_MAP instead of VM_ALLOC for ringbuf\n\nAfter commit 2fd3fb0be1d1 (\"kasan, vmalloc: unpoison VM_ALLOC pages\nafter mapping\"), non-VM_ALLOC mappings will be marked as accessible\nin __get_vm_area_node() when KASAN is enabled. But now the flag for\nringbuf area is VM_ALLOC, so KASAN will complain out-of-bound access\nafter vmap() returns. Because the ringbuf area is created by mapping\nallocated pages, so use VM_MAP instead.\n\nAfter the change, info in /proc/vmallocinfo also changes from\n  [start]-[end]   24576 ringbuf_map_alloc+0x171/0x290 vmalloc user\nto\n  [start]-[end]   24576 ringbuf_map_alloc+0x171/0x290 vmap user"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"6304a613a97d6dcd49b93fbad31e9f39d1e138d6","versionType":"git"},{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"5e457aeab52a5947619e1f18047f4d2f3212b3eb","versionType":"git"},{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"d578933f6226d5419af9306746efa1c693cbaf9c","versionType":"git"},{"version":"457f44363a8894135c85b7a9afd2bd8196db24ab","status":"affected","lessThan":"b293dcc473d22a62dc6d78de2b15e4f49515db56","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/ringbuf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.99","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.22","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.8","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/ringbuf.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6304a613a97d6dcd49b93fbad31e9f39d1e138d6"},{"url":"https://git.kernel.org/stable/c/5e457aeab52a5947619e1f18047f4d2f3212b3eb"},{"url":"https://git.kernel.org/stable/c/d578933f6226d5419af9306746efa1c693cbaf9c"},{"url":"https://git.kernel.org/stable/c/b293dcc473d22a62dc6d78de2b15e4f49515db56"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:45:32.260Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.99"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.16.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/6304a613a97d6dcd49b93fbad31e9f39d1e138d6","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5e457aeab52a5947619e1f18047f4d2f3212b3eb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d578933f6226d5419af9306746efa1c693cbaf9c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b293dcc473d22a62dc6d78de2b15e4f49515db56","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:17:55.841Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48714","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:11:29.204417Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:50.097Z"}}]}}}