7.8

CVE-2022-50005: nfc: pn533: Fix use-after-free bugs caused by pn532_cmd_timeout

Analyzed
AliasesUBUNTU-CVE-2022-50005DEBIAN-CVE-2022-50005
Published 18-06-2025Last modified 11-05-2026

Vulnerability summary

CVE-2022-50005 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 16.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.25%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 4

Timeline

  1. 18-06-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: nfc: pn533: Fix use-after-free bugs caused by pn532_cmd_timeout When the pn532 uart device is detaching, the pn532_uart_remove() is called. But there are no functions in pn532_uart_remove() that could delete the cmd_timeout timer, which will cause use-after-free bugs. The process is shown below: (thread 1) | (thread 2) | pn532_uart_send_frame pn532_uart_remove | mod_timer(&pn532->cmd_timeout,...) ... | (wait a time) kfree(pn532) //FREE | pn532_cmd_timeout | pn532_uart_send_frame | pn532->... //USE This patch adds del_timer_sync() in pn532_uart_remove() in order to prevent the use-after-free bugs. What's more, the pn53x_unregister_nfc() is well synchronized, it sets nfc_dev->shutting_down to true and there are no syscalls could restart the cmd_timeout timer.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.25%

Chance of exploitation in the next 30 days

Percentile

17%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.25% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu94 products
  • linux< 5.15.0-53.59
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 5.15.0-1023.27
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ c656aa4c27b17a8c70da223ed5ab42145800d6b5, < 50403ee6daddf0d7a14e9d3b51a377c39a08ec8c | ≥ c656aa4c27b17a8c70da223ed5ab42145800d6b5, < 9c34c33893db7a80d0e4b55c23d3b65e29609cfb | ≥ c656aa4c27b17a8c70da223ed5ab42145800d6b5, < 2c71f5d55a86fd5969428abf525c1ae6b1c7b0f5 | ≥ c656aa4c27b17a8c70da223ed5ab42145800d6b5, < f1e941dbf80a9b8bab0bffbc4cbe41cc7f4c6fb6 | 5.5
  • linux_kernel≥ 5.5, < 5.10.140 | ≥ 5.11, < 5.15.64 | ≥ 5.16, < 5.19.6 | 6.0:rc1 | 6.0:rc2
Debian1 product
  • linux< 6.0.2-1

3 vendors · 97 products

References

7 links