CVE-2021-46946: Software Security Vulnerability Vulnerability

UNKNOWN
Advisory Identifier: GHSA-44mr-328w-2q72
Published
Advisory Summary

CVE-2021-46946 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-46946 at a Glance

CVE Identifier CVE-2021-46946
GHSA Identifier GHSA-44mr-328w-2q72
Severity N/A
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2021-46946

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.

Verify Direct and Transitive Dependencies

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-46946, 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

In the Linux kernel, the following vulnerability has been resolved: ext4: fix check to prevent false positive report of incorrect used inodes Commit <50122847007> ("ext4: fix check to prevent initializing reserved inodes") check the block group zero and prevent initializing reserved inodes. But in some special cases, the reserved inode may not all belong to the group zero, it may exist into the second group if we format filesystem below. mkfs.ext4 -b 4096 -g 8192 -N 1024 -I 4096 /dev/sda So, it will end up triggering a false positive report of a corrupted file system. This patch fix it by avoid check reserved inodes if no free inode blocks will be zeroed.

References

Frequently Asked Questions

What is CVE-2021-46946?
CVE-2021-46946 is a security vulnerability in Software classified as a security vulnerability vulnerability under General Security Weakness.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2021-46946?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2021-46946?
CVE-2021-46946 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2021-46946?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-44mr-328w-2q72",
  "modified" : "2024-02-27T21:31:26Z",
  "published" : "2024-02-27T21:31:26Z",
  "aliases" : [ "CVE-2021-46946" ],
  "details" : "In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix check to prevent false positive report of incorrect used inodes\n\nCommit <50122847007> (\"ext4: fix check to prevent initializing reserved\ninodes\") check the block group zero and prevent initializing reserved\ninodes. But in some special cases, the reserved inode may not all belong\nto the group zero, it may exist into the second group if we format\nfilesystem below.\n\n  mkfs.ext4 -b 4096 -g 8192 -N 1024 -I 4096 /dev/sda\n\nSo, it will end up triggering a false positive report of a corrupted\nfile system. This patch fix it by avoid check reserved inodes if no free\ninode blocks will be zeroed.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-46946"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/098b257563b959f4ca6c1d82fde0ee727792cb19"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/539ba4ebc467260225898e67ea53cbb73308f894"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/7687f5aba0f50c7ff8040e506bae184e59c8e7b8"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/9c61387630a54e35b96a90608aafd369ffb86f39"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/a149d2a5cabbf6507a7832a1c4fd2593c55fd450"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/d2e121be8d318524a61e13ca15b5bfab2d0b63c7"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/e18d76a12b34791bc0318a0e0c0fa5863cd8dabf"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/e70db6e43286a17c3dfc840fcee662de183b6a81"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/f42789ee5f96743cdb5f69445cab3609458733f7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : null,
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2024-02-27T19:04:06Z"
  }
}