{"id":"DEBIAN-CVE-2022-49878","details":"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:     [\u003c00000000b211474b\u003e] __kmalloc_node_track_caller+0x45/0xc0     [\u003c0000000086712a0b\u003e] krealloc+0x83/0xd0     [\u003c00000000139aab02\u003e] realloc_array+0x82/0xe2     [\u003c00000000b1ca41d1\u003e] grow_stack_state+0xfb/0x186     [\u003c00000000cd6f36d2\u003e] check_mem_access.cold+0x141/0x1341     [\u003c0000000081780455\u003e] do_check_common+0x5358/0xb350     [\u003c0000000015f6b091\u003e] bpf_check.cold+0xc3/0x29d     [\u003c000000002973c690\u003e] bpf_prog_load+0x13db/0x2240     [\u003c00000000028d1644\u003e] __sys_bpf+0x1605/0x4ce0     [\u003c00000000053f29bd\u003e] __x64_sys_bpf+0x75/0xb0     [\u003c0000000056fedaf5\u003e] do_syscall_64+0x35/0x80     [\u003c000000002bd58261\u003e] entry_SYSCALL_64_after_hwframe+0x63/0xcd","modified":"2026-09-01T20:03:34.558238552Z","published":"2025-05-01T15:16:12.753Z","upstream":["CVE-2022-49878"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-49878"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.10-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49878.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.10-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49878.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.10-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49878.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}