CVE-2022-49743 (GCVE-0-2022-49743)

Vulnerability from cvelistv5 – Published: 2025-03-27 16:42 – Updated: 2026-08-05 08:56
VLAI
Title
ovl: Use "buf" flexible array for memcpy() destination
Summary
In the Linux kernel, the following vulnerability has been resolved: ovl: Use "buf" flexible array for memcpy() destination The "buf" flexible array needs to be the memcpy() destination to avoid false positive run-time warning from the recent FORTIFY_SOURCE hardening: memcpy: detected field-spanning write (size 93) of single field "&fh->fb" at fs/overlayfs/export.c:799 (size 21)
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: cbe7fba8edfc8cb8e621599e376f8ac5c224fa72 , < 012cdef22000f3104e4fa8224ad29fde509b8caf (git)
Affected: cbe7fba8edfc8cb8e621599e376f8ac5c224fa72 , < a77141a06367825d639ac51b04703d551163e36c (git)
Affected: cbe7fba8edfc8cb8e621599e376f8ac5c224fa72 , < 07a96977b2f462337a9121302de64277b8747ab1 (git)
Affected: cbe7fba8edfc8cb8e621599e376f8ac5c224fa72 , < cf8aa9bf97cadf85745506c6a3e244b22c268d63 (git)
Create a notification for this product.
Linux Linux Affected: 5.5
Unaffected: 0 , < 5.5 (semver)
Unaffected: 5.10.248 , ≤ 5.10.* (semver)
Unaffected: 5.15.93 , ≤ 5.15.* (semver)
Unaffected: 6.1.11 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/overlayfs/export.c",
            "fs/overlayfs/overlayfs.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "012cdef22000f3104e4fa8224ad29fde509b8caf",
              "status": "affected",
              "version": "cbe7fba8edfc8cb8e621599e376f8ac5c224fa72",
              "versionType": "git"
            },
            {
              "lessThan": "a77141a06367825d639ac51b04703d551163e36c",
              "status": "affected",
              "version": "cbe7fba8edfc8cb8e621599e376f8ac5c224fa72",
              "versionType": "git"
            },
            {
              "lessThan": "07a96977b2f462337a9121302de64277b8747ab1",
              "status": "affected",
              "version": "cbe7fba8edfc8cb8e621599e376f8ac5c224fa72",
              "versionType": "git"
            },
            {
              "lessThan": "cf8aa9bf97cadf85745506c6a3e244b22c268d63",
              "status": "affected",
              "version": "cbe7fba8edfc8cb8e621599e376f8ac5c224fa72",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/overlayfs/export.c",
            "fs/overlayfs/overlayfs.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.5"
            },
            {
              "lessThan": "5.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.248",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.93",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.248",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.93",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.11",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\novl: Use \"buf\" flexible array for memcpy() destination\n\nThe \"buf\" flexible array needs to be the memcpy() destination to avoid\nfalse positive run-time warning from the recent FORTIFY_SOURCE\nhardening:\n\n  memcpy: detected field-spanning write (size 93) of single field \"\u0026fh-\u003efb\"\n  at fs/overlayfs/export.c:799 (size 21)"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - ovl_fid_to_fh() is reached via ovl_fh_to_dentry export_operations when an overlay is mounted with nfs_export=on and exported through nfsd; a remote NFS client triggers decode by sending a crafted OVL_FILEID_V0 (0xfb) filehandle.\nAC:L - The attacker fully controls the filehandle type and payload and can reliably force the V0 realignment memcpy path; no race or unpredictable victim state is required.\nPR:N - nfsd invokes exportfs_decode_fh during fh_verify before file permission checks; on common AUTH_SYS exports, any host permitted by the export list can send the crafted handle with no credentials.\nUI:N - Exploitation requires only sending an NFS request with a crafted filehandle; no victim user action is needed once the overlay is NFS-exported.\nS:U - Impact remains within the host kernel authority; this is not a VM escape, IOMMU bypass, or other cross-boundary breakout.\nC:N - The commit documents a FORTIFY_SOURCE false positive: kzalloc(buflen) correctly covers the memcpy of buflen-OVL_FH_WIRE_OFFSET, so there is no out-of-bounds read or information disclosure.\nI:N - There is no real buffer overflow or memory corruption\u2014only a mis-typed memcpy destination (\u0026fh-\u003efb vs fh-\u003ebuf)\u2014so no write primitive or integrity impact exists.\nA:H - CONFIG_FORTIFY_SOURCE emits a kernel WARN_ONCE on the field-spanning write; with panic_on_warn (common on Android/hardened hosts) this becomes a kernel panic, matching DoS/crash severity."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:56:12.285Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/012cdef22000f3104e4fa8224ad29fde509b8caf"
        },
        {
          "url": "https://git.kernel.org/stable/c/a77141a06367825d639ac51b04703d551163e36c"
        },
        {
          "url": "https://git.kernel.org/stable/c/07a96977b2f462337a9121302de64277b8747ab1"
        },
        {
          "url": "https://git.kernel.org/stable/c/cf8aa9bf97cadf85745506c6a3e244b22c268d63"
        }
      ],
      "title": "ovl: Use \"buf\" flexible array for memcpy() destination",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49743",
    "datePublished": "2025-03-27T16:42:54.289Z",
    "dateReserved": "2025-03-27T16:39:17.987Z",
    "dateUpdated": "2026-08-05T08:56:12.285Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49743",
      "date": "2026-08-10",
      "epss": "0.00417",
      "percentile": "0.34405"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-49743\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-03-27T17:15:38.967\",\"lastModified\":\"2026-08-04T10:17:55.310\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\novl: Use \\\"buf\\\" flexible array for memcpy() destination\\n\\nThe \\\"buf\\\" flexible array needs to be the memcpy() destination to avoid\\nfalse positive run-time warning from the recent FORTIFY_SOURCE\\nhardening:\\n\\n  memcpy: detected field-spanning write (size 93) of single field \\\"\u0026fh-\u003efb\\\"\\n  at fs/overlayfs/export.c:799 (size 21)\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ovl: Usar la matriz flexible \\\"buf\\\" para el destino de memcpy() La matriz flexible \\\"buf\\\" debe ser el destino de memcpy() para evitar una advertencia de tiempo de ejecuci\u00f3n de falsos positivos del reciente endurecimiento de FORTIFY_SOURCE: memcpy: se detect\u00f3 una escritura que abarca el campo (tama\u00f1o 93) de un solo campo \\\"\u0026amp;fh-\u0026gt;fb\\\" en fs/overlayfs/export.c:799 (tama\u00f1o 21)\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/overlayfs/export.c\",\"fs/overlayfs/overlayfs.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"cbe7fba8edfc8cb8e621599e376f8ac5c224fa72\",\"lessThan\":\"012cdef22000f3104e4fa8224ad29fde509b8caf\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cbe7fba8edfc8cb8e621599e376f8ac5c224fa72\",\"lessThan\":\"a77141a06367825d639ac51b04703d551163e36c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cbe7fba8edfc8cb8e621599e376f8ac5c224fa72\",\"lessThan\":\"07a96977b2f462337a9121302de64277b8747ab1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cbe7fba8edfc8cb8e621599e376f8ac5c224fa72\",\"lessThan\":\"cf8aa9bf97cadf85745506c6a3e244b22c268d63\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/overlayfs/export.c\",\"fs/overlayfs/overlayfs.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.5\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.5\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.248\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.93\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.11\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"5.15.93\",\"matchCriteriaId\":\"5DF57B24-C3A2-4DF8-B3C1-A14A7C858DFE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.1.11\",\"matchCriteriaId\":\"535D03F4-DA02-49FE-934E-668827E6407B\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/012cdef22000f3104e4fa8224ad29fde509b8caf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/07a96977b2f462337a9121302de64277b8747ab1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a77141a06367825d639ac51b04703d551163e36c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/cf8aa9bf97cadf85745506c6a3e244b22c268d63\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:43:03+00:00",
      "cve": "CVE-2022-49743",
      "id": "CVE-2022-49743",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_affected": "184",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: ovl: Use \"buf\" flexible array for memcpy() destination",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49743.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-04T00:00:52Z",
      "cve": "CVE-2022-49743",
      "id": "CVE-2022-49743",
      "initial_release_date": "2025-03-28T03:41:00Z",
      "product_status:known_affected": "112",
      "product_status:known_not_affected": "272",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-49743",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-49743.json",
      "version": "11"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…