CVE-2023-53396 (GCVE-0-2023-53396)

Vulnerability from cvelistv5 – Published: 2025-09-18 13:33 – Updated: 2025-09-18 13:33
VLAI?
Summary
In the Linux kernel, the following vulnerability has been resolved: ubifs: Fix memory leak in do_rename If renaming a file in an encrypted directory, function fscrypt_setup_filename allocates memory for a file name. This name is never used, and before returning to the caller the memory for it is not freed. When running kmemleak on it we see that it is registered as a leak. The report below is triggered by a simple program 'rename' that renames a file in an encrypted directory: unreferenced object 0xffff888101502840 (size 32): comm "rename", pid 9404, jiffies 4302582475 (age 435.735s) backtrace: __kmem_cache_alloc_node __kmalloc fscrypt_setup_filename do_rename ubifs_rename vfs_rename do_renameat2 To fix this we can remove the call to fscrypt_setup_filename as it's not needed.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: c67bc98d1f0853bb196e9c48eab38b6f2ddab795 , < 43b2f7d690697182beed6f71aa57b7249d3cfc9c (git)
Affected: 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 , < 9f565752b328fe53c9e42b7d4e4d89a1da63d738 (git)
Affected: 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 , < 7e264f67b7d6580eff5c2696961039fd05c69258 (git)
Affected: 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 , < 517ddc0259d7a7231486bdafde8035c478bc4088 (git)
Affected: 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 , < 3a36d20e012903f45714df2731261fdefac900cb (git)
Affected: 17495eb2f7f08113b50aba298c2c1a045824c4f7 (git)
Affected: 868de33a39e0e1e91ed3ce4a23a65f30144d2443 (git)
Create a notification for this product.
    Linux Linux Affected: 5.18
Unaffected: 0 , < 5.18 (semver)
Unaffected: 5.15.112 , ≤ 5.15.* (semver)
Unaffected: 6.1.28 , ≤ 6.1.* (semver)
Unaffected: 6.2.15 , ≤ 6.2.* (semver)
Unaffected: 6.3.2 , ≤ 6.3.* (semver)
Unaffected: 6.4 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ubifs/dir.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "43b2f7d690697182beed6f71aa57b7249d3cfc9c",
              "status": "affected",
              "version": "c67bc98d1f0853bb196e9c48eab38b6f2ddab795",
              "versionType": "git"
            },
            {
              "lessThan": "9f565752b328fe53c9e42b7d4e4d89a1da63d738",
              "status": "affected",
              "version": "278d9a243635f26c05ad95dcf9c5a593b9e04dc6",
              "versionType": "git"
            },
            {
              "lessThan": "7e264f67b7d6580eff5c2696961039fd05c69258",
              "status": "affected",
              "version": "278d9a243635f26c05ad95dcf9c5a593b9e04dc6",
              "versionType": "git"
            },
            {
              "lessThan": "517ddc0259d7a7231486bdafde8035c478bc4088",
              "status": "affected",
              "version": "278d9a243635f26c05ad95dcf9c5a593b9e04dc6",
              "versionType": "git"
            },
            {
              "lessThan": "3a36d20e012903f45714df2731261fdefac900cb",
              "status": "affected",
              "version": "278d9a243635f26c05ad95dcf9c5a593b9e04dc6",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "17495eb2f7f08113b50aba298c2c1a045824c4f7",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "868de33a39e0e1e91ed3ce4a23a65f30144d2443",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ubifs/dir.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.18"
            },
            {
              "lessThan": "5.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.112",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.28",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.15",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.3.*",
              "status": "unaffected",
              "version": "6.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.4",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.112",
                  "versionStartIncluding": "5.15.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.28",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.15",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3.2",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.16.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.17.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Fix memory leak in do_rename\n\nIf renaming a file in an encrypted directory, function\nfscrypt_setup_filename allocates memory for a file name. This name is\nnever used, and before returning to the caller the memory for it is not\nfreed.\n\nWhen running kmemleak on it we see that it is registered as a leak. The\nreport below is triggered by a simple program \u0027rename\u0027 that renames a\nfile in an encrypted directory:\n\n  unreferenced object 0xffff888101502840 (size 32):\n    comm \"rename\", pid 9404, jiffies 4302582475 (age 435.735s)\n    backtrace:\n      __kmem_cache_alloc_node\n      __kmalloc\n      fscrypt_setup_filename\n      do_rename\n      ubifs_rename\n      vfs_rename\n      do_renameat2\n\nTo fix this we can remove the call to fscrypt_setup_filename as it\u0027s not\nneeded."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-18T13:33:37.360Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/43b2f7d690697182beed6f71aa57b7249d3cfc9c"
        },
        {
          "url": "https://git.kernel.org/stable/c/9f565752b328fe53c9e42b7d4e4d89a1da63d738"
        },
        {
          "url": "https://git.kernel.org/stable/c/7e264f67b7d6580eff5c2696961039fd05c69258"
        },
        {
          "url": "https://git.kernel.org/stable/c/517ddc0259d7a7231486bdafde8035c478bc4088"
        },
        {
          "url": "https://git.kernel.org/stable/c/3a36d20e012903f45714df2731261fdefac900cb"
        }
      ],
      "title": "ubifs: Fix memory leak in do_rename",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53396",
    "datePublished": "2025-09-18T13:33:37.360Z",
    "dateReserved": "2025-09-17T14:54:09.738Z",
    "dateUpdated": "2025-09-18T13:33:37.360Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53396\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-18T14:15:42.817\",\"lastModified\":\"2025-09-19T16:00:27.847\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nubifs: Fix memory leak in do_rename\\n\\nIf renaming a file in an encrypted directory, function\\nfscrypt_setup_filename allocates memory for a file name. This name is\\nnever used, and before returning to the caller the memory for it is not\\nfreed.\\n\\nWhen running kmemleak on it we see that it is registered as a leak. The\\nreport below is triggered by a simple program \u0027rename\u0027 that renames a\\nfile in an encrypted directory:\\n\\n  unreferenced object 0xffff888101502840 (size 32):\\n    comm \\\"rename\\\", pid 9404, jiffies 4302582475 (age 435.735s)\\n    backtrace:\\n      __kmem_cache_alloc_node\\n      __kmalloc\\n      fscrypt_setup_filename\\n      do_rename\\n      ubifs_rename\\n      vfs_rename\\n      do_renameat2\\n\\nTo fix this we can remove the call to fscrypt_setup_filename as it\u0027s not\\nneeded.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3a36d20e012903f45714df2731261fdefac900cb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/43b2f7d690697182beed6f71aa57b7249d3cfc9c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/517ddc0259d7a7231486bdafde8035c478bc4088\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7e264f67b7d6580eff5c2696961039fd05c69258\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9f565752b328fe53c9e42b7d4e4d89a1da63d738\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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…