CVE-2022-49548

HighCVSS 7.8/10Last modified Jun 17, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix potential array overflow in bpf_trampoline_get_progs()

The cnt value in the 'cnt >= BPF_MAX_TRAMP_PROGS' check does not include BPF_TRAMP_MODIFY_RETURN bpf programs, so the number of the attached BPF_TRAMP_MODIFY_RETURN bpf programs in a trampoline can exceed BPF_MAX_TRAMP_PROGS.

When this happens, the assignment '*progs++ = aux->prog' in bpf_trampoline_get_progs() will cause progs array overflow as the progs field in the bpf_tramp_progs struct can only hold at most BPF_MAX_TRAMP_PROGS bpf programs.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < 7f845de2863334bed4f362e95853f5e7bc323737; >= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < e36452d5da6325df7c10cffc60a9e68d21e2606d; >= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < 32c4559c61652f24c9fdd5440342196fe37453bc; >= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < 4f8897bcc20b9ae44758e0572538d741ab66f0dc; >= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d
LinuxLinux5.7

References

Timeline

Published
Feb 26, 2025
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2022

CVE-2022-495495.5In the Linux kernel, the following vulnerability has been resolved: x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails In mceCVE-2022-49556.5Inappropriate implementation in DevTools in Google Chrome prior to 108.0.5359.71 allowed an attacker who convinced a user to install a malicCVE-2022-495505.5In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: provide block_invalidate_folio to fix memory leak The ntfs3 CVE-2022-495517.1In the Linux kernel, the following vulnerability has been resolved: usb: isp1760: Fix out-of-bounds array access Running the driver througCVE-2022-495525.5In the Linux kernel, the following vulnerability has been resolved: bpf: Fix combination of jit blinding and pointers to bpf subprogs. TheCVE-2022-495535.5In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: validate BOOT sectors_per_clusters When the NTFS BOOT sectorCVE-2022-495544.7In the Linux kernel, the following vulnerability has been resolved: zsmalloc: fix races between asynchronous zspage free and page migrationCVE-2022-495555.5In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_qca: Use del_timer_sync() before freeing While looking CVE-2022-495567.1In the Linux kernel, the following vulnerability has been resolved: KVM: SVM: Use kzalloc for sev ioctl interfaces to prevent kernel data lCVE-2022-495575.5In the Linux kernel, the following vulnerability has been resolved: x86/fpu: KVM: Set the base guest FPU uABI size to sizeof(struct kvm_xsaCVE-2022-495585.5In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: double hook unregistration in netns path __nft_rCVE-2022-495595.5In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Drop WARNs that assert a triple fault never "escapes" from L2
CVE-2022-49548: High severity, CVSS 7.8 | Vulnix