CVE-2022-50062
BaseFortify
Publication date: 2025-06-18
Last updated on: 2025-11-13
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-617 | The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a bug in the Linux kernel's bgmac network driver where a race condition can trigger a kernel BUG. Specifically, if a receive (RX) interrupt occurs between certain operations in the transmission ring buffer handling, the driver can miscalculate the queue size, leading to a kernel panic (BUG_ON). This issue causes an internal kernel error and can crash the system. It was fixed by correcting the handling of bytes_compl in the bgmac driver.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash due to a BUG triggered in the bgmac network driver. Such a crash can lead to system instability, downtime, and potential loss of network connectivity on affected machines, especially those using the bgmac driver on ARM architectures.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring the system logs for kernel BUG messages related to bgmac, specifically messages like 'kernel BUG at lib/dynamic_queue_limits.c:27!' or 'Internal error: Oops - BUG: 0' involving bgmac_poll and dql_completed functions. You can use commands such as 'dmesg | grep -i bgmac' or 'journalctl -k | grep -i bgmac' to search for these kernel BUG messages indicating the issue.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include updating the Linux kernel to a version where this bug is fixed, as the issue has been resolved in the kernel. If updating is not immediately possible, monitoring for the kernel BUG messages and avoiding workloads that trigger RX interrupts between setting ring->end and netdev_sent_queue() may reduce the chance of hitting the BUG_ON. Ultimately, applying the patch or upgrading the kernel is necessary to fully mitigate the vulnerability.