CVE-2021-47084: Software Security Vulnerability Vulnerability
UNKNOWNCVE-2021-47084 is a security vulnerability vulnerability (General Security Weakness) affecting Software libraries in the Maven ecosystem. Remediation is available in the latest vendor maintenance releases.
CVE-2021-47084 at a Glance
How to Fix CVE-2021-47084
To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-47084, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree
Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
References
Frequently Asked Questions
What is CVE-2021-47084?
Which Software versions are affected?
What version fixes CVE-2021-47084?
What CWE is associated with CVE-2021-47084?
How can I check Maven dependencies for CVE-2021-47084?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7xj5-h6cr-5xf4",
"modified" : "2024-03-04T18:30:37Z",
"published" : "2024-03-04T18:30:37Z",
"aliases" : [ "CVE-2021-47084" ],
"details" : "In the Linux kernel, the following vulnerability has been resolved:\n\nhamradio: defer ax25 kfree after unregister_netdev\n\nThere is a possible race condition (use-after-free) like below\n\n (USE) | (FREE)\nax25_sendmsg |\n ax25_queue_xmit |\n dev_queue_xmit |\n __dev_queue_xmit |\n __dev_xmit_skb |\n sch_direct_xmit | ...\n xmit_one |\n netdev_start_xmit | tty_ldisc_kill\n __netdev_start_xmit | mkiss_close\n ax_xmit | kfree\n ax_encaps |\n |\n\nEven though there are two synchronization primitives before the kfree:\n1. wait_for_completion(&ax->dead). This can prevent the race with\nroutines from mkiss_ioctl. However, it cannot stop the routine coming\nfrom upper layer, i.e., the ax25_sendmsg.\n\n2. netif_stop_queue(ax->dev). It seems that this line of code aims to\nhalt the transmit queue but it fails to stop the routine that already\nbeing xmit.\n\nThis patch reorder the kfree after the unregister_netdev to avoid the\npossible UAF as the unregister_netdev() is well synchronized and won't\nreturn if there is a running routine.",
"severity" : [ ],
"affected" : [ ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-47084"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/3e0588c291d6ce225f2b891753ca41d45ba42469"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/450121075a6a6f1d50f97225d3396315309d61a1"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/896193a02a2981e60c40d4614fd095ce92135ccd"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/8a1a314965a17c62084a056b4f2cb7a770854c90"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/b5b193d0c67180fefdc664650138e3b7959df615"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/cb6c99aedd2c843056a598a8907a6128cb07603b"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/eaa816a86e629cbcc0a94f38391fee09231628c7"
}, {
"type" : "WEB",
"url" : "https://git.kernel.org/stable/c/ef5f7bfa19e3fc366f4c6d1a841ceaddf7a9f5d4"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : null,
"github_reviewed" : false,
"github_reviewed_at" : null,
"nvd_published_at" : "2024-03-04T18:15:07Z"
}
}