Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability in the Linux kernel's BPF subsystem allows for the suppression of a specific warning related to BTF (BPF Type Format) handling. This issue arises in the 'btf_type_id_size' function, where a warning is triggered when a DECL_TAG type is incorrectly used as a BPF key or value type ID. The vulnerability is present in the stable versions of the Linux kernel.
Exploitation of this vulnerability could lead to improper handling of BTF type IDs, potentially causing issues in BPF map operations that rely on type ID correctness.
The vulnerability can be reproduced by creating a BPF map with a BTF key type ID that is a DECL_TAG. This will trigger a warning in the 'btf_type_id_size' function, indicating that the DECL_TAG type is being misused. The warning can be silenced by modifying the BTF type handling to recognize DECL_TAGs as a valid type that does not require a size, thereby preventing the warning from occurring in the first place.
Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.