CVE-2022-49425 (GCVE-0-2022-49425)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:12 – Updated: 2026-08-05 08:55
VLAI
Title
f2fs: fix dereference of stale list iterator after loop body
Summary
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix dereference of stale list iterator after loop body The list iterator variable will be a bogus pointer if no break was hit. Dereferencing it (cur->page in this case) could load an out-of-bounds/undefined value making it unsafe to use that in the comparision to determine if the specific element was found. Since 'cur->page' *can* be out-ouf-bounds it cannot be guaranteed that by chance (or intention of an attacker) it matches the value of 'page' even though the correct element was not found. This is fixed by using a separate list iterator variable for the loop and only setting the original variable if a suitable element was found. Then determing if the element was found is simply checking if the variable is set.
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: 8c242db9b8c01b252290e23827163787f07e01d1 , < 385edd3ce5b4b1e9d31f474a5e35a39779ec1110 (git)
Affected: 8c242db9b8c01b252290e23827163787f07e01d1 , < 5e47a7add3dda7f236548c5ec3017776dc2a729f (git)
Affected: 8c242db9b8c01b252290e23827163787f07e01d1 , < 51d584704d18e60fa473823654f35611c777b291 (git)
Affected: 8c242db9b8c01b252290e23827163787f07e01d1 , < 45b2b7d7108ae1e25a5036cab04ab9273e792332 (git)
Affected: 8c242db9b8c01b252290e23827163787f07e01d1 , < b26e1c777890e4b938136deb8ec07a29f33862e4 (git)
Affected: 8c242db9b8c01b252290e23827163787f07e01d1 , < ed7efc472c00986dcd6903ab6ed165c7fa167674 (git)
Affected: 8c242db9b8c01b252290e23827163787f07e01d1 , < 2aaf51dd39afb6d01d13f1e6fe20b684733b37d5 (git)
Create a notification for this product.
Linux Linux Affected: 4.12
Unaffected: 0 , < 4.12 (semver)
Unaffected: 4.19.247 , ≤ 4.19.* (semver)
Unaffected: 5.4.198 , ≤ 5.4.* (semver)
Unaffected: 5.10.121 , ≤ 5.10.* (semver)
Unaffected: 5.15.46 , ≤ 5.15.* (semver)
Unaffected: 5.17.14 , ≤ 5.17.* (semver)
Unaffected: 5.18.3 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/f2fs/segment.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "385edd3ce5b4b1e9d31f474a5e35a39779ec1110",
              "status": "affected",
              "version": "8c242db9b8c01b252290e23827163787f07e01d1",
              "versionType": "git"
            },
            {
              "lessThan": "5e47a7add3dda7f236548c5ec3017776dc2a729f",
              "status": "affected",
              "version": "8c242db9b8c01b252290e23827163787f07e01d1",
              "versionType": "git"
            },
            {
              "lessThan": "51d584704d18e60fa473823654f35611c777b291",
              "status": "affected",
              "version": "8c242db9b8c01b252290e23827163787f07e01d1",
              "versionType": "git"
            },
            {
              "lessThan": "45b2b7d7108ae1e25a5036cab04ab9273e792332",
              "status": "affected",
              "version": "8c242db9b8c01b252290e23827163787f07e01d1",
              "versionType": "git"
            },
            {
              "lessThan": "b26e1c777890e4b938136deb8ec07a29f33862e4",
              "status": "affected",
              "version": "8c242db9b8c01b252290e23827163787f07e01d1",
              "versionType": "git"
            },
            {
              "lessThan": "ed7efc472c00986dcd6903ab6ed165c7fa167674",
              "status": "affected",
              "version": "8c242db9b8c01b252290e23827163787f07e01d1",
              "versionType": "git"
            },
            {
              "lessThan": "2aaf51dd39afb6d01d13f1e6fe20b684733b37d5",
              "status": "affected",
              "version": "8c242db9b8c01b252290e23827163787f07e01d1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/f2fs/segment.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.12"
            },
            {
              "lessThan": "4.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.247",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.198",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.121",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.247",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.198",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.121",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.46",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.14",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.3",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix dereference of stale list iterator after loop body\n\nThe list iterator variable will be a bogus pointer if no break was hit.\nDereferencing it (cur-\u003epage in this case) could load an out-of-bounds/undefined\nvalue making it unsafe to use that in the comparision to determine if the\nspecific element was found.\n\nSince \u0027cur-\u003epage\u0027 *can* be out-ouf-bounds it cannot be guaranteed that\nby chance (or intention of an attacker) it matches the value of \u0027page\u0027\neven though the correct element was not found.\n\nThis is fixed by using a separate list iterator variable for the loop\nand only setting the original variable if a suitable element was found.\nThen determing if the element was found is simply checking if the\nvariable is set."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Reachable only via local f2fs atomic-write ioctls and pagecache invalidate/truncate on an f2fs inode (F2FS_IOC_START_ATOMIC_WRITE \u2192 dirty \u2192 f2fs_invalidate_folio \u2192 f2fs_drop_inmem_page); not via network protocol handlers.\nAC:L - An unprivileged local attacker fully controls the atomic-write, write, and truncate/invalidate sequence on their own file and can drive the drop path directly; no attacker-independent timing or rare hardware state is required.\nPR:L - F2FS_IOC_START_ATOMIC_WRITE only needs inode_owner_or_capable, so any unprivileged user who owns a file on a mounted f2fs volume (common on Android userdata) can enter the path without real root.\nUI:N - On typical f2fs deployments the filesystem is already mounted; the attacker triggers the bug with their own ioctl/write/truncate and needs no separate victim action.\nS:U - Impact is kernel memory corruption within the host f2fs/pagecache authority and does not cross VM, IOMMU, or other security boundaries.\nC:H - On the not-found path the stale iterator aliases into f2fs_inode_info; continuing to kmem_cache_free that address corrupts slab freelists, which is leveragable for arbitrary kernel read primitives.\nI:H - list_del on the bogus inmem_pages object and kmem_cache_free of a non-slab inode-interior pointer yield heap corruption exploitable for arbitrary write and control-flow hijacking.\nA:H - The same path can BUG_ON/WARN then fault in list_del/slab free, or panic from corrupted freelists, so availability impact is a kernel oops/panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:55:10.701Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/385edd3ce5b4b1e9d31f474a5e35a39779ec1110"
        },
        {
          "url": "https://git.kernel.org/stable/c/5e47a7add3dda7f236548c5ec3017776dc2a729f"
        },
        {
          "url": "https://git.kernel.org/stable/c/51d584704d18e60fa473823654f35611c777b291"
        },
        {
          "url": "https://git.kernel.org/stable/c/45b2b7d7108ae1e25a5036cab04ab9273e792332"
        },
        {
          "url": "https://git.kernel.org/stable/c/b26e1c777890e4b938136deb8ec07a29f33862e4"
        },
        {
          "url": "https://git.kernel.org/stable/c/ed7efc472c00986dcd6903ab6ed165c7fa167674"
        },
        {
          "url": "https://git.kernel.org/stable/c/2aaf51dd39afb6d01d13f1e6fe20b684733b37d5"
        }
      ],
      "title": "f2fs: fix dereference of stale list iterator after loop body",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49425",
    "datePublished": "2025-02-26T02:12:46.702Z",
    "dateReserved": "2025-02-26T02:08:31.569Z",
    "dateUpdated": "2026-08-05T08:55:10.701Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49425",
      "date": "2026-11-19",
      "epss": "0.00277",
      "percentile": "0.20425"
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-11-09T18:21:18+00:00",
      "cve": "CVE-2022-49425",
      "id": "CVE-2022-49425",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "200",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: f2fs: fix dereference of stale list iterator after loop body",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49425.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.