CVE-2022-50299
CVE-2022-50299 — md: Replace snprintf with scnprintf
In the Linux kernel, the following vulnerability has been resolved: md: Replace snprintf with scnprintf Current code produces a warning as shown below when total characters in the constituent block device names plus the slashes exceeds 200. snprintf() returns the number of characters generated from the given input, which could cause the expression “200 – len” to wrap around to a large positive number. Fix this by using scnprintf() instead, which returns the actual number of characters written into the buffer. [ 1513.267938] ------------[ cut here ]------------ [ 1513.267943] WARNING: CPU: 15 PID: 37247 at <snip>/lib/vsprintf.c:2509 vsnprintf+0x2c8/0x510 [ 1513.267944] Modules linked in: <snip> [ 1513.267969] CPU: 15 PID: 37247 Comm: mdadm Not tainted 5.4.0-1085-azure #90~18.04.1-Ubuntu [ 1513.267969] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI…
Published Updated Sources: cvelistV5, Linux
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
Unscored
no source published a base score
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /lib/vsprintf.c:2509, /0x510, /Virtual.
References
8 on the record
- git.kernel.org/stable/c/3b0a2bd51f60418ecd67493586a2bb2174199de3
reference
- git.kernel.org/stable/c/897b1450abe5a67c842a5d24173ce4449ccdfa94
reference
- git.kernel.org/stable/c/97238b88583c27c9d3b4a0cedb45f816523f17c3
reference
- git.kernel.org/stable/c/76694e9ce0b2238c0a5f3ba54f9361dd3770ec78
reference
- git.kernel.org/stable/c/5d8259c9d1915a50c60c7d6e9e7fb9b7da64a175
reference
- git.kernel.org/stable/c/41ca95033a0c47cd6dace1f0a36a6eb5ebe799e6
reference
- git.kernel.org/stable/c/f95825c4e51cf9a653b0ef947ac78401fc9d3a40
reference
- git.kernel.org/stable/c/1727fd5015d8f93474148f94e34cda5aa6ad4a43
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-39682 tls: fix handling of zero-length records on the rx_listCVSS 9.8 · CISA KEV
- CVE-2016-3427 Oracle Java SE and JRockit Unspecified VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-53266 netfilter: bridge: make ebt_snat ARP rewrite writableCVSS 8.8 · CISA KEV
- CVE-2026-46300 net: skbuff: preserve shared-frag marker during coalescingCVSS 7.8 · CISA KEV
- CVE-2026-31431 crypto: algif_aead - Revert to operating out-of-placeCVSS 7.8 · CISA KEV
- CVE-2014-3153 Linux Kernel Privilege Escalation VulnerabilityCVSS 7.8 · CISA KEV
Elsewhere on this site
- Linuxevery CVE for this vendor
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.