CVE-2023-53307 (GCVE-0-2023-53307)
Vulnerability from cvelistv5
Published
2025-09-16 16:11
Modified
2025-09-16 16:11
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails If getting an ID or setting up a work queue in rbd_dev_create() fails, use-after-free on rbd_dev->rbd_client, rbd_dev->spec and rbd_dev->opts is triggered in do_rbd_add(). The root cause is that the ownership of these structures is transfered to rbd_dev prematurely and they all end up getting freed when rbd_dev_create() calls rbd_dev_free() prior to returning to do_rbd_add(). Found by Linux Verification Center (linuxtesting.org) with SVACE, an incomplete patch submitted by Natalia Petrova <n.petrova@fintech.ru>.
Impacted products
Vendor Product Version
Linux Linux Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Version: 1643dfa4c2c827d6e2aa419df8c17b0f24090278
Create a notification for this product.
   Linux Linux Version: 4.9
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/rbd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "71da2a151ed1adb0aea4252b16d81b53012e7afd",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            },
            {
              "lessThan": "e3cbb4d60764295992c95344f2d779439e8b34ce",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            },
            {
              "lessThan": "9787b328c42c13c4f31e7d5042c4e877e9344068",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            },
            {
              "lessThan": "ae16346078b1189aee934afd872d9f3d0a682c33",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            },
            {
              "lessThan": "a73783e4e0c4d1507794da211eeca75498544dff",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            },
            {
              "lessThan": "faa7b683e436664fff5648426950718277831348",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            },
            {
              "lessThan": "cc8c0dd2984503ed09efa37bcafcef3d3da104e8",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            },
            {
              "lessThan": "f7c4d9b133c7a04ca619355574e96b6abf209fba",
              "status": "affected",
              "version": "1643dfa4c2c827d6e2aa419df8c17b0f24090278",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/rbd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.9"
            },
            {
              "lessThan": "4.9",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.308",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.276",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.235",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.173",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.99",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.308",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.276",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.235",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.173",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.99",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.16",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.3",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails\n\nIf getting an ID or setting up a work queue in rbd_dev_create() fails,\nuse-after-free on rbd_dev-\u003erbd_client, rbd_dev-\u003espec and rbd_dev-\u003eopts\nis triggered in do_rbd_add().  The root cause is that the ownership of\nthese structures is transfered to rbd_dev prematurely and they all end\nup getting freed when rbd_dev_create() calls rbd_dev_free() prior to\nreturning to do_rbd_add().\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE, an\nincomplete patch submitted by Natalia Petrova \u003cn.petrova@fintech.ru\u003e."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-16T16:11:46.288Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd"
        },
        {
          "url": "https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce"
        },
        {
          "url": "https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068"
        },
        {
          "url": "https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33"
        },
        {
          "url": "https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff"
        },
        {
          "url": "https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348"
        },
        {
          "url": "https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8"
        },
        {
          "url": "https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba"
        }
      ],
      "title": "rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53307",
    "datePublished": "2025-09-16T16:11:46.288Z",
    "dateReserved": "2025-09-16T08:09:37.994Z",
    "dateUpdated": "2025-09-16T16:11:46.288Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53307\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-16T17:15:36.477\",\"lastModified\":\"2025-09-17T14:18:55.093\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nrbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails\\n\\nIf getting an ID or setting up a work queue in rbd_dev_create() fails,\\nuse-after-free on rbd_dev-\u003erbd_client, rbd_dev-\u003espec and rbd_dev-\u003eopts\\nis triggered in do_rbd_add().  The root cause is that the ownership of\\nthese structures is transfered to rbd_dev prematurely and they all end\\nup getting freed when rbd_dev_create() calls rbd_dev_free() prior to\\nreturning to do_rbd_add().\\n\\nFound by Linux Verification Center (linuxtesting.org) with SVACE, an\\nincomplete patch submitted by Natalia Petrova \u003cn.petrova@fintech.ru\u003e.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348\",\"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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • 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…