cbcvebase.
CVE-2022-49878
published 2025-05-01

CVE-2022-49878: In the Linux kernel, the following vulnerability has been resolved: bpf, verifier: Fix memory leak in array reallocation for stack state If an error (NULL) is…

PriorityP417medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.19%
8.5th percentile
In the Linux kernel, the following vulnerability has been resolved: bpf, verifier: Fix memory leak in array reallocation for stack state If an error (NULL) is returned by krealloc(), callers of realloc_array() were setting their allocation pointers to NULL, but on error krealloc() does not touch the original allocation. This would result in a memory resource leak. Instead, free the old allocation on the error handling path. The memory leak information is as follows as also reported by Zhengchao: unreferenced object 0xffff888019801800 (size 256): comm "bpf_repo", pid 6490, jiffies 4294959200 (age 17.170s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] __kmalloc_node_track_caller+0x45/0xc0 [] krealloc+0x83/0xd0 [] realloc_array+0x82/0xe2 [] grow_stack_state+0xfb/0x186 [] check_mem_access.cold+0x141/0x1341 [] do_check_common+0x5358/0xb350 [] bpf_check.cold+0xc3/0x29d [] bpf_prog_load+0x13db/0x2240 [] __sys_bpf+0x1605/0x4ce0 [] __x64_sys_bpf+0x75/0xb0 [] do_syscall_64+0x35/0x80 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd

Affected

11 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.0.10-1 (bookworm)linux 6.0.10-1 (bookworm)
linuxlinux
linuxlinux>= c69431aab67a912836e5831f03d99a819c14c9c3 < 06615967d4889b08b19ff3dda96e8b131282f73d06615967d4889b08b19ff3dda96e8b131282f73d
linuxlinux>= c69431aab67a912836e5831f03d99a819c14c9c3 < 3e210891c4a4c2d858cd6f9f61d5809af251d4df3e210891c4a4c2d858cd6f9f61d5809af251d4df
linuxlinux>= c69431aab67a912836e5831f03d99a819c14c9c3 < 42378a9ca55347102bbf86708776061d8fe3ece242378a9ca55347102bbf86708776061d8fe3ece2
linuxlinux_kernel
linuxlinux_kernel>= 0 < 6.0.10-16.0.10-1
linuxlinux_kernel>= 0 < 6.0.10-16.0.10-1
linuxlinux_kernel>= 0 < 6.0.10-16.0.10-1
linuxlinux_kernel>= 5.14 < 5.15.795.15.79
linuxlinux_kernel>= 5.16 < 6.0.96.0.9

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.