CVE-2022-50005
BaseFortify
Publication date: 2025-06-18
Last updated on: 2025-11-14
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 | 6.0 |
| linux | linux_kernel | 6.0 |
| 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-416 | The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free bug in the Linux kernel's NFC driver for the pn533 device. When the pn532 UART device is detached, the function pn532_uart_remove() is called, but it does not delete the cmd_timeout timer. As a result, the timer can still trigger after the device memory has been freed, causing the system to use freed memory, which can lead to undefined behavior or crashes. The fix involves adding a call to del_timer_sync() in pn532_uart_remove() to properly delete the timer and prevent this use-after-free condition.
How can this vulnerability impact me? :
This vulnerability can cause the system to access memory that has already been freed, potentially leading to system crashes, instability, or unexpected behavior. In some cases, use-after-free bugs can be exploited to execute arbitrary code or escalate privileges, although the specific impact depends on the context and exploitability of this particular bug.
What immediate steps should I take to mitigate this vulnerability?
Apply the patch that adds del_timer_sync() in the pn532_uart_remove() function to prevent use-after-free bugs. Ensure your Linux kernel is updated to a version that includes this fix.