CVE-2022-50341 (GCVE-0-2022-50341)

Vulnerability from cvelistv5 – Published: 2025-09-16 16:11 – Updated: 2026-01-14 18:22
VLAI?
Title
cifs: fix oops during encryption
Summary
In the Linux kernel, the following vulnerability has been resolved: cifs: fix oops during encryption When running xfstests against Azure the following oops occurred on an arm64 system Unable to handle kernel write to read-only memory at virtual address ffff0001221cf000 Mem abort info: ESR = 0x9600004f EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x0f: level 3 permission fault Data abort info: ISV = 0, ISS = 0x0000004f CM = 0, WnR = 1 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000294f3000 [ffff0001221cf000] pgd=18000001ffff8003, p4d=18000001ffff8003, pud=18000001ff82e003, pmd=18000001ff71d003, pte=00600001221cf787 Internal error: Oops: 9600004f [#1] PREEMPT SMP ... pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--) pc : __memcpy+0x40/0x230 lr : scatterwalk_copychunks+0xe0/0x200 sp : ffff800014e92de0 x29: ffff800014e92de0 x28: ffff000114f9de80 x27: 0000000000000008 x26: 0000000000000008 x25: ffff800014e92e78 x24: 0000000000000008 x23: 0000000000000001 x22: 0000040000000000 x21: ffff000000000000 x20: 0000000000000001 x19: ffff0001037c4488 x18: 0000000000000014 x17: 235e1c0d6efa9661 x16: a435f9576b6edd6c x15: 0000000000000058 x14: 0000000000000001 x13: 0000000000000008 x12: ffff000114f2e590 x11: ffffffffffffffff x10: 0000040000000000 x9 : ffff8000105c3580 x8 : 2e9413b10000001a x7 : 534b4410fb86b005 x6 : 534b4410fb86b005 x5 : ffff0001221cf008 x4 : ffff0001037c4490 x3 : 0000000000000001 x2 : 0000000000000008 x1 : ffff0001037c4488 x0 : ffff0001221cf000 Call trace: __memcpy+0x40/0x230 scatterwalk_map_and_copy+0x98/0x100 crypto_ccm_encrypt+0x150/0x180 crypto_aead_encrypt+0x2c/0x40 crypt_message+0x750/0x880 smb3_init_transform_rq+0x298/0x340 smb_send_rqst.part.11+0xd8/0x180 smb_send_rqst+0x3c/0x100 compound_send_recv+0x534/0xbc0 smb2_query_info_compound+0x32c/0x440 smb2_set_ea+0x438/0x4c0 cifs_xattr_set+0x5d4/0x7c0 This is because in scatterwalk_copychunks(), we attempted to write to a buffer (@sign) that was allocated in the stack (vmalloc area) by crypt_message() and thus accessing its remaining 8 (x2) bytes ended up crossing a page boundary. To simply fix it, we could just pass @sign kmalloc'd from crypt_message() and then we're done. Luckily, we don't seem to pass any other vmalloc'd buffers in smb_rqst::rq_iov... Instead, let's map the correct pages and offsets from vmalloc buffers as well in cifs_sg_set_buf() and then avoiding such oopses.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398 , < e8e2861cc3258dbe407d01ea8c59bb5a53132301 (git)
Affected: 026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398 , < fe6ea044c4f05706cb71040055b1c70c6c8275e0 (git)
Affected: 026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398 , < bf0543b93740916ee91956f9a63da6fc0d79daaa (git)
Affected: 026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398 , < a13e51760703f71c25d5fc1f4a62dfa4b0cc80e9 (git)
Affected: 026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398 , < e8d16a54842d609fd4a3ed2d81d4333d6329aa94 (git)
Affected: 026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398 , < f7f291e14dde32a07b1f0aa06921d28f875a7b54 (git)
Create a notification for this product.
    Linux Linux Affected: 4.11
Unaffected: 0 , < 4.11 (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.87 , ≤ 5.15.* (semver)
Unaffected: 6.0.16 , ≤ 6.0.* (semver)
Unaffected: 6.1.1 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2022-50341",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-01-14T18:19:48.496611Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "description": "CWE-noinfo Not enough information",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-01-14T18:22:57.726Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/cifs/cifsglob.h",
            "fs/cifs/cifsproto.h",
            "fs/cifs/misc.c",
            "fs/cifs/smb2ops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e8e2861cc3258dbe407d01ea8c59bb5a53132301",
              "status": "affected",
              "version": "026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398",
              "versionType": "git"
            },
            {
              "lessThan": "fe6ea044c4f05706cb71040055b1c70c6c8275e0",
              "status": "affected",
              "version": "026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398",
              "versionType": "git"
            },
            {
              "lessThan": "bf0543b93740916ee91956f9a63da6fc0d79daaa",
              "status": "affected",
              "version": "026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398",
              "versionType": "git"
            },
            {
              "lessThan": "a13e51760703f71c25d5fc1f4a62dfa4b0cc80e9",
              "status": "affected",
              "version": "026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398",
              "versionType": "git"
            },
            {
              "lessThan": "e8d16a54842d609fd4a3ed2d81d4333d6329aa94",
              "status": "affected",
              "version": "026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398",
              "versionType": "git"
            },
            {
              "lessThan": "f7f291e14dde32a07b1f0aa06921d28f875a7b54",
              "status": "affected",
              "version": "026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/cifs/cifsglob.h",
            "fs/cifs/cifsproto.h",
            "fs/cifs/misc.c",
            "fs/cifs/smb2ops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.11"
            },
            {
              "lessThan": "4.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.87",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.1",
              "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.4.229",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.87",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.1",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: fix oops during encryption\n\nWhen running xfstests against Azure the following oops occurred on an\narm64 system\n\n  Unable to handle kernel write to read-only memory at virtual address\n  ffff0001221cf000\n  Mem abort info:\n    ESR = 0x9600004f\n    EC = 0x25: DABT (current EL), IL = 32 bits\n    SET = 0, FnV = 0\n    EA = 0, S1PTW = 0\n    FSC = 0x0f: level 3 permission fault\n  Data abort info:\n    ISV = 0, ISS = 0x0000004f\n    CM = 0, WnR = 1\n  swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000294f3000\n  [ffff0001221cf000] pgd=18000001ffff8003, p4d=18000001ffff8003,\n  pud=18000001ff82e003, pmd=18000001ff71d003, pte=00600001221cf787\n  Internal error: Oops: 9600004f [#1] PREEMPT SMP\n  ...\n  pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)\n  pc : __memcpy+0x40/0x230\n  lr : scatterwalk_copychunks+0xe0/0x200\n  sp : ffff800014e92de0\n  x29: ffff800014e92de0 x28: ffff000114f9de80 x27: 0000000000000008\n  x26: 0000000000000008 x25: ffff800014e92e78 x24: 0000000000000008\n  x23: 0000000000000001 x22: 0000040000000000 x21: ffff000000000000\n  x20: 0000000000000001 x19: ffff0001037c4488 x18: 0000000000000014\n  x17: 235e1c0d6efa9661 x16: a435f9576b6edd6c x15: 0000000000000058\n  x14: 0000000000000001 x13: 0000000000000008 x12: ffff000114f2e590\n  x11: ffffffffffffffff x10: 0000040000000000 x9 : ffff8000105c3580\n  x8 : 2e9413b10000001a x7 : 534b4410fb86b005 x6 : 534b4410fb86b005\n  x5 : ffff0001221cf008 x4 : ffff0001037c4490 x3 : 0000000000000001\n  x2 : 0000000000000008 x1 : ffff0001037c4488 x0 : ffff0001221cf000\n  Call trace:\n   __memcpy+0x40/0x230\n   scatterwalk_map_and_copy+0x98/0x100\n   crypto_ccm_encrypt+0x150/0x180\n   crypto_aead_encrypt+0x2c/0x40\n   crypt_message+0x750/0x880\n   smb3_init_transform_rq+0x298/0x340\n   smb_send_rqst.part.11+0xd8/0x180\n   smb_send_rqst+0x3c/0x100\n   compound_send_recv+0x534/0xbc0\n   smb2_query_info_compound+0x32c/0x440\n   smb2_set_ea+0x438/0x4c0\n   cifs_xattr_set+0x5d4/0x7c0\n\nThis is because in scatterwalk_copychunks(), we attempted to write to\na buffer (@sign) that was allocated in the stack (vmalloc area) by\ncrypt_message() and thus accessing its remaining 8 (x2) bytes ended up\ncrossing a page boundary.\n\nTo simply fix it, we could just pass @sign kmalloc\u0027d from\ncrypt_message() and then we\u0027re done.  Luckily, we don\u0027t seem to pass\nany other vmalloc\u0027d buffers in smb_rqst::rq_iov...\n\nInstead, let\u0027s map the correct pages and offsets from vmalloc buffers\nas well in cifs_sg_set_buf() and then avoiding such oopses."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-23T13:28:46.032Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e8e2861cc3258dbe407d01ea8c59bb5a53132301"
        },
        {
          "url": "https://git.kernel.org/stable/c/fe6ea044c4f05706cb71040055b1c70c6c8275e0"
        },
        {
          "url": "https://git.kernel.org/stable/c/bf0543b93740916ee91956f9a63da6fc0d79daaa"
        },
        {
          "url": "https://git.kernel.org/stable/c/a13e51760703f71c25d5fc1f4a62dfa4b0cc80e9"
        },
        {
          "url": "https://git.kernel.org/stable/c/e8d16a54842d609fd4a3ed2d81d4333d6329aa94"
        },
        {
          "url": "https://git.kernel.org/stable/c/f7f291e14dde32a07b1f0aa06921d28f875a7b54"
        }
      ],
      "title": "cifs: fix oops during encryption",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50341",
    "datePublished": "2025-09-16T16:11:20.838Z",
    "dateReserved": "2025-09-16T16:03:27.881Z",
    "dateUpdated": "2026-01-14T18:22:57.726Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-50341\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-01-14T18:19:48.496611Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"description\": \"CWE-noinfo Not enough information\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-01-14T18:19:44.287Z\"}}], \"cna\": {\"title\": \"cifs: fix oops during encryption\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398\", \"lessThan\": \"e8e2861cc3258dbe407d01ea8c59bb5a53132301\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398\", \"lessThan\": \"fe6ea044c4f05706cb71040055b1c70c6c8275e0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398\", \"lessThan\": \"bf0543b93740916ee91956f9a63da6fc0d79daaa\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398\", \"lessThan\": \"a13e51760703f71c25d5fc1f4a62dfa4b0cc80e9\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398\", \"lessThan\": \"e8d16a54842d609fd4a3ed2d81d4333d6329aa94\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"026e93dc0a3eefb0be060bcb9ecd8d7a7fd5c398\", \"lessThan\": \"f7f291e14dde32a07b1f0aa06921d28f875a7b54\", \"versionType\": \"git\"}], \"programFiles\": [\"fs/cifs/cifsglob.h\", \"fs/cifs/cifsproto.h\", \"fs/cifs/misc.c\", \"fs/cifs/smb2ops.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.11\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.11\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.229\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.163\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.87\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.0.16\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.0.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.1\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.2\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/cifs/cifsglob.h\", \"fs/cifs/cifsproto.h\", \"fs/cifs/misc.c\", \"fs/cifs/smb2ops.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/e8e2861cc3258dbe407d01ea8c59bb5a53132301\"}, {\"url\": \"https://git.kernel.org/stable/c/fe6ea044c4f05706cb71040055b1c70c6c8275e0\"}, {\"url\": \"https://git.kernel.org/stable/c/bf0543b93740916ee91956f9a63da6fc0d79daaa\"}, {\"url\": \"https://git.kernel.org/stable/c/a13e51760703f71c25d5fc1f4a62dfa4b0cc80e9\"}, {\"url\": \"https://git.kernel.org/stable/c/e8d16a54842d609fd4a3ed2d81d4333d6329aa94\"}, {\"url\": \"https://git.kernel.org/stable/c/f7f291e14dde32a07b1f0aa06921d28f875a7b54\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncifs: fix oops during encryption\\n\\nWhen running xfstests against Azure the following oops occurred on an\\narm64 system\\n\\n  Unable to handle kernel write to read-only memory at virtual address\\n  ffff0001221cf000\\n  Mem abort info:\\n    ESR = 0x9600004f\\n    EC = 0x25: DABT (current EL), IL = 32 bits\\n    SET = 0, FnV = 0\\n    EA = 0, S1PTW = 0\\n    FSC = 0x0f: level 3 permission fault\\n  Data abort info:\\n    ISV = 0, ISS = 0x0000004f\\n    CM = 0, WnR = 1\\n  swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000294f3000\\n  [ffff0001221cf000] pgd=18000001ffff8003, p4d=18000001ffff8003,\\n  pud=18000001ff82e003, pmd=18000001ff71d003, pte=00600001221cf787\\n  Internal error: Oops: 9600004f [#1] PREEMPT SMP\\n  ...\\n  pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)\\n  pc : __memcpy+0x40/0x230\\n  lr : scatterwalk_copychunks+0xe0/0x200\\n  sp : ffff800014e92de0\\n  x29: ffff800014e92de0 x28: ffff000114f9de80 x27: 0000000000000008\\n  x26: 0000000000000008 x25: ffff800014e92e78 x24: 0000000000000008\\n  x23: 0000000000000001 x22: 0000040000000000 x21: ffff000000000000\\n  x20: 0000000000000001 x19: ffff0001037c4488 x18: 0000000000000014\\n  x17: 235e1c0d6efa9661 x16: a435f9576b6edd6c x15: 0000000000000058\\n  x14: 0000000000000001 x13: 0000000000000008 x12: ffff000114f2e590\\n  x11: ffffffffffffffff x10: 0000040000000000 x9 : ffff8000105c3580\\n  x8 : 2e9413b10000001a x7 : 534b4410fb86b005 x6 : 534b4410fb86b005\\n  x5 : ffff0001221cf008 x4 : ffff0001037c4490 x3 : 0000000000000001\\n  x2 : 0000000000000008 x1 : ffff0001037c4488 x0 : ffff0001221cf000\\n  Call trace:\\n   __memcpy+0x40/0x230\\n   scatterwalk_map_and_copy+0x98/0x100\\n   crypto_ccm_encrypt+0x150/0x180\\n   crypto_aead_encrypt+0x2c/0x40\\n   crypt_message+0x750/0x880\\n   smb3_init_transform_rq+0x298/0x340\\n   smb_send_rqst.part.11+0xd8/0x180\\n   smb_send_rqst+0x3c/0x100\\n   compound_send_recv+0x534/0xbc0\\n   smb2_query_info_compound+0x32c/0x440\\n   smb2_set_ea+0x438/0x4c0\\n   cifs_xattr_set+0x5d4/0x7c0\\n\\nThis is because in scatterwalk_copychunks(), we attempted to write to\\na buffer (@sign) that was allocated in the stack (vmalloc area) by\\ncrypt_message() and thus accessing its remaining 8 (x2) bytes ended up\\ncrossing a page boundary.\\n\\nTo simply fix it, we could just pass @sign kmalloc\u0027d from\\ncrypt_message() and then we\u0027re done.  Luckily, we don\u0027t seem to pass\\nany other vmalloc\u0027d buffers in smb_rqst::rq_iov...\\n\\nInstead, let\u0027s map the correct pages and offsets from vmalloc buffers\\nas well in cifs_sg_set_buf() and then avoiding such oopses.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.229\", \"versionStartIncluding\": \"4.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.163\", \"versionStartIncluding\": \"4.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.87\", \"versionStartIncluding\": \"4.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.0.16\", \"versionStartIncluding\": \"4.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.1\", \"versionStartIncluding\": \"4.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.2\", \"versionStartIncluding\": \"4.11\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-12-23T13:28:46.032Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-50341\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-01-14T18:22:57.726Z\", \"dateReserved\": \"2025-09-16T16:03:27.881Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-09-16T16:11:20.838Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…