CVE-2024-35864 (GCVE-0-2024-35864)
Vulnerability from cvelistv5
Published
2024-05-19 08:34
Modified
2026-08-05 11:30
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_is_valid_lease_break() Skip sessions that are being teared down (status == SES_EXITING) to avoid UAF.
Impacted products
Vendor Product Version
Linux Linux Version: 7f48558e6489d032b1584b0cc9ac4bb11072c034
Version: 7f48558e6489d032b1584b0cc9ac4bb11072c034
Version: 7f48558e6489d032b1584b0cc9ac4bb11072c034
Version: 7f48558e6489d032b1584b0cc9ac4bb11072c034
Version: a67172a013953664b1dad03c648200c70b90506c
Version: 3.12.48   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-35864",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-29T18:32:19.453857Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:34:05.415Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T03:21:48.471Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/c868cabdf6fdd61bea54532271f4708254e57fc5"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/f92739fdd4522c4291277136399353d7c341fae4"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/a8344e2b69bde63f713b0aa796d70dbeadffddfb"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/705c76fbf726c7a2f6ff9143d4013b18daaaebf1"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/smb2misc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c868cabdf6fdd61bea54532271f4708254e57fc5",
              "status": "affected",
              "version": "7f48558e6489d032b1584b0cc9ac4bb11072c034",
              "versionType": "git"
            },
            {
              "lessThan": "f92739fdd4522c4291277136399353d7c341fae4",
              "status": "affected",
              "version": "7f48558e6489d032b1584b0cc9ac4bb11072c034",
              "versionType": "git"
            },
            {
              "lessThan": "a8344e2b69bde63f713b0aa796d70dbeadffddfb",
              "status": "affected",
              "version": "7f48558e6489d032b1584b0cc9ac4bb11072c034",
              "versionType": "git"
            },
            {
              "lessThan": "705c76fbf726c7a2f6ff9143d4013b18daaaebf1",
              "status": "affected",
              "version": "7f48558e6489d032b1584b0cc9ac4bb11072c034",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "a67172a013953664b1dad03c648200c70b90506c",
              "versionType": "git"
            },
            {
              "lessThan": "3.13",
              "status": "affected",
              "version": "3.12.48",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/smb2misc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.13"
            },
            {
              "lessThan": "3.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.85",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.26",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.8.*",
              "status": "unaffected",
              "version": "6.8.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.9",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.85",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.26",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8.5",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "3.12.48",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix potential UAF in smb2_is_valid_lease_break()\n\nSkip sessions that are being teared down (status == SES_EXITING) to\navoid UAF."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The vulnerable loop is entered only from `cifs_demultiplex_thread()` processing an unsolicited SMB2 lease-break frame received from the remote SMB server over TCP/445, which routinely traverses the internet (e.g. Azure Files and other cloud SMB shares). A malicious or compromised server, or an on-path attacker injecting into the stream, delivers the trigger entirely as network data.\nAC:L - The attacker controls both sides of the race \u2014 it forces session teardown (session-expired/user-session-deleted status codes, TCP reset driving reconnect, DFS IPC churn) and then floods lease-break notifications \u2014 and it can stall the SMB2 LOGOFF reply so the session lingers in SES_EXITING on `smb_ses_list` for the entire request timeout, making the window arbitrarily wide and repeatable.\nPR:N - Unsolicited oplock/lease-break frames bypass `smb2_verify_signature()` entirely and the handler ignores SessionId/TreeId, matching only on the attacker-supplied LeaseKey, so no credentials on the client and no authenticated SMB session are needed to reach the vulnerable traversal.\nUI:N - In the realistic deployment \u2014 a persistent cifs mount from fstab, autofs, or a container volume \u2014 the connection already exists, and the compromised server or on-path injector triggers the code path with no action from any local user.\nS:U - The use-after-free corrupts kernel heap memory belonging to the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Walking a torn-down session\u0027s `tcon_list` and `pending_opens` dereferences freed slab objects whose contents the attacker can groom via heap spraying, turning `tcon-\u003ecfids`, `open-\u003etlink`, and `open-\u003elease_key` into attacker-influenced pointers that yield a kernel memory read primitive.\nI:H - The path writes into the freed memory \u2014 `spin_lock(\u0026tcon-\u003eopen_file_lock)`, `cifs_stats_inc()` counter increments, and `cifs_get_tlink()` refcount bumps \u2014 and later frees/queues work (`queue_work(cifsiod_wq, \u0026cfid-\u003elease_break)`) through sprayed pointers, giving heap corruption and control-flow hijacking potential.\nA:H - Dereferencing freed `cifs_ses`/`cifs_tcon` state from the demultiplex kernel thread readily produces an oops or panic, and because the trigger is a repeatable unauthenticated network frame the attacker can crash the client at will."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:30:28.316Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c868cabdf6fdd61bea54532271f4708254e57fc5"
        },
        {
          "url": "https://git.kernel.org/stable/c/f92739fdd4522c4291277136399353d7c341fae4"
        },
        {
          "url": "https://git.kernel.org/stable/c/a8344e2b69bde63f713b0aa796d70dbeadffddfb"
        },
        {
          "url": "https://git.kernel.org/stable/c/705c76fbf726c7a2f6ff9143d4013b18daaaebf1"
        }
      ],
      "title": "smb: client: fix potential UAF in smb2_is_valid_lease_break()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-35864",
    "datePublished": "2024-05-19T08:34:22.936Z",
    "dateReserved": "2024-05-17T13:50:33.107Z",
    "dateUpdated": "2026-08-05T11:30:28.316Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/c868cabdf6fdd61bea54532271f4708254e57fc5\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/f92739fdd4522c4291277136399353d7c341fae4\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/a8344e2b69bde63f713b0aa796d70dbeadffddfb\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/705c76fbf726c7a2f6ff9143d4013b18daaaebf1\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T03:21:48.471Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-35864\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-29T18:32:19.453857Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-29T18:32:23.849Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"smb: client: fix potential UAF in smb2_is_valid_lease_break()\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 9.8, \"baseSeverity\": \"CRITICAL\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:N - The vulnerable loop is entered only from `cifs_demultiplex_thread()` processing an unsolicited SMB2 lease-break frame received from the remote SMB server over TCP/445, which routinely traverses the internet (e.g. Azure Files and other cloud SMB shares). A malicious or compromised server, or an on-path attacker injecting into the stream, delivers the trigger entirely as network data.\\nAC:L - The attacker controls both sides of the race \\u2014 it forces session teardown (session-expired/user-session-deleted status codes, TCP reset driving reconnect, DFS IPC churn) and then floods lease-break notifications \\u2014 and it can stall the SMB2 LOGOFF reply so the session lingers in SES_EXITING on `smb_ses_list` for the entire request timeout, making the window arbitrarily wide and repeatable.\\nPR:N - Unsolicited oplock/lease-break frames bypass `smb2_verify_signature()` entirely and the handler ignores SessionId/TreeId, matching only on the attacker-supplied LeaseKey, so no credentials on the client and no authenticated SMB session are needed to reach the vulnerable traversal.\\nUI:N - In the realistic deployment \\u2014 a persistent cifs mount from fstab, autofs, or a container volume \\u2014 the connection already exists, and the compromised server or on-path injector triggers the code path with no action from any local user.\\nS:U - The use-after-free corrupts kernel heap memory belonging to the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\\nC:H - Walking a torn-down session\u0027s `tcon_list` and `pending_opens` dereferences freed slab objects whose contents the attacker can groom via heap spraying, turning `tcon-\u003ecfids`, `open-\u003etlink`, and `open-\u003elease_key` into attacker-influenced pointers that yield a kernel memory read primitive.\\nI:H - The path writes into the freed memory \\u2014 `spin_lock(\u0026tcon-\u003eopen_file_lock)`, `cifs_stats_inc()` counter increments, and `cifs_get_tlink()` refcount bumps \\u2014 and later frees/queues work (`queue_work(cifsiod_wq, \u0026cfid-\u003elease_break)`) through sprayed pointers, giving heap corruption and control-flow hijacking potential.\\nA:H - Dereferencing freed `cifs_ses`/`cifs_tcon` state from the demultiplex kernel thread readily produces an oops or panic, and because the trigger is a repeatable unauthenticated network frame the attacker can crash the client at will.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"7f48558e6489d032b1584b0cc9ac4bb11072c034\", \"lessThan\": \"c868cabdf6fdd61bea54532271f4708254e57fc5\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"7f48558e6489d032b1584b0cc9ac4bb11072c034\", \"lessThan\": \"f92739fdd4522c4291277136399353d7c341fae4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"7f48558e6489d032b1584b0cc9ac4bb11072c034\", \"lessThan\": \"a8344e2b69bde63f713b0aa796d70dbeadffddfb\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"7f48558e6489d032b1584b0cc9ac4bb11072c034\", \"lessThan\": \"705c76fbf726c7a2f6ff9143d4013b18daaaebf1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a67172a013953664b1dad03c648200c70b90506c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"3.12.48\", \"lessThan\": \"3.13\", \"versionType\": \"semver\"}], \"programFiles\": [\"fs/smb/client/smb2misc.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"3.13\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"3.13\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.85\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.26\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8.5\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.8.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/smb/client/smb2misc.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/c868cabdf6fdd61bea54532271f4708254e57fc5\"}, {\"url\": \"https://git.kernel.org/stable/c/f92739fdd4522c4291277136399353d7c341fae4\"}, {\"url\": \"https://git.kernel.org/stable/c/a8344e2b69bde63f713b0aa796d70dbeadffddfb\"}, {\"url\": \"https://git.kernel.org/stable/c/705c76fbf726c7a2f6ff9143d4013b18daaaebf1\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nsmb: client: fix potential UAF in smb2_is_valid_lease_break()\\n\\nSkip sessions that are being teared down (status == SES_EXITING) to\\navoid UAF.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.85\", \"versionStartIncluding\": \"3.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.26\", \"versionStartIncluding\": \"3.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8.5\", \"versionStartIncluding\": \"3.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.9\", \"versionStartIncluding\": \"3.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"3.12.48\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T11:30:28.316Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-35864\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T11:30:28.316Z\", \"dateReserved\": \"2024-05-17T13:50:33.107Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-19T08:34:22.936Z\", \"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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…