CVE-2026-23297 (GCVE-0-2026-23297)

Vulnerability from cvelistv5 – Published: 2026-03-25 10:26 – Updated: 2026-05-11 22:04
VLAI
Title
nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().
Summary
In the Linux kernel, the following vulnerability has been resolved: nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit(). syzbot reported memory leak of struct cred. [0] nfsd_nl_threads_set_doit() passes get_current_cred() to nfsd_svc(), but put_cred() is not called after that. The cred is finally passed down to _svc_xprt_create(), which calls get_cred() with the cred for struct svc_xprt. The ownership of the refcount by get_current_cred() is not transferred to anywhere and is just leaked. nfsd_svc() is also called from write_threads(), but it does not bump file->f_cred there. nfsd_nl_threads_set_doit() is called from sendmsg() and current->cred does not go away. Let's use current_cred() in nfsd_nl_threads_set_doit(). [0]: BUG: memory leak unreferenced object 0xffff888108b89480 (size 184): comm "syz-executor", pid 5994, jiffies 4294943386 hex dump (first 32 bytes): 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 369454a7): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4958 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x412/0x580 mm/slub.c:5270 prepare_creds+0x22/0x600 kernel/cred.c:185 copy_creds+0x44/0x290 kernel/cred.c:286 copy_process+0x7a7/0x2870 kernel/fork.c:2086 kernel_clone+0xac/0x6e0 kernel/fork.c:2651 __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 924f4fb003ba114c60b3c07a011dcd86a8956cd1 , < 41170716421c25cd20b39e83f0e0762e212b377b (git)
Affected: 924f4fb003ba114c60b3c07a011dcd86a8956cd1 , < 27c13c5bb0948e3b5c64e59f8a903231896fab9b (git)
Affected: 924f4fb003ba114c60b3c07a011dcd86a8956cd1 , < a3f88e3e18b51a7f654189189c762ebcdeaa7e29 (git)
Affected: 924f4fb003ba114c60b3c07a011dcd86a8956cd1 , < 1cb968a2013ffa8112d52ebe605009ea1c6a582c (git)
Create a notification for this product.
Linux Linux Affected: 6.10
Unaffected: 0 , < 6.10 (semver)
Unaffected: 6.12.77 , ≤ 6.12.* (semver)
Unaffected: 6.18.17 , ≤ 6.18.* (semver)
Unaffected: 6.19.7 , ≤ 6.19.* (semver)
Unaffected: 7.0 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfsctl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "41170716421c25cd20b39e83f0e0762e212b377b",
              "status": "affected",
              "version": "924f4fb003ba114c60b3c07a011dcd86a8956cd1",
              "versionType": "git"
            },
            {
              "lessThan": "27c13c5bb0948e3b5c64e59f8a903231896fab9b",
              "status": "affected",
              "version": "924f4fb003ba114c60b3c07a011dcd86a8956cd1",
              "versionType": "git"
            },
            {
              "lessThan": "a3f88e3e18b51a7f654189189c762ebcdeaa7e29",
              "status": "affected",
              "version": "924f4fb003ba114c60b3c07a011dcd86a8956cd1",
              "versionType": "git"
            },
            {
              "lessThan": "1cb968a2013ffa8112d52ebe605009ea1c6a582c",
              "status": "affected",
              "version": "924f4fb003ba114c60b3c07a011dcd86a8956cd1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfsctl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.10"
            },
            {
              "lessThan": "6.10",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.77",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.77",
                  "versionStartIncluding": "6.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.17",
                  "versionStartIncluding": "6.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.7",
                  "versionStartIncluding": "6.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0",
                  "versionStartIncluding": "6.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().\n\nsyzbot reported memory leak of struct cred. [0]\n\nnfsd_nl_threads_set_doit() passes get_current_cred() to\nnfsd_svc(), but put_cred() is not called after that.\n\nThe cred is finally passed down to _svc_xprt_create(),\nwhich calls get_cred() with the cred for struct svc_xprt.\n\nThe ownership of the refcount by get_current_cred() is not\ntransferred to anywhere and is just leaked.\n\nnfsd_svc() is also called from write_threads(), but it does\nnot bump file-\u003ef_cred there.\n\nnfsd_nl_threads_set_doit() is called from sendmsg() and\ncurrent-\u003ecred does not go away.\n\nLet\u0027s use current_cred() in nfsd_nl_threads_set_doit().\n\n[0]:\nBUG: memory leak\nunreferenced object 0xffff888108b89480 (size 184):\n  comm \"syz-executor\", pid 5994, jiffies 4294943386\n  hex dump (first 32 bytes):\n    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace (crc 369454a7):\n    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]\n    slab_post_alloc_hook mm/slub.c:4958 [inline]\n    slab_alloc_node mm/slub.c:5263 [inline]\n    kmem_cache_alloc_noprof+0x412/0x580 mm/slub.c:5270\n    prepare_creds+0x22/0x600 kernel/cred.c:185\n    copy_creds+0x44/0x290 kernel/cred.c:286\n    copy_process+0x7a7/0x2870 kernel/fork.c:2086\n    kernel_clone+0xac/0x6e0 kernel/fork.c:2651\n    __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792\n    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]\n    do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94\n    entry_SYSCALL_64_after_hwframe+0x77/0x7f"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T22:04:09.525Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/41170716421c25cd20b39e83f0e0762e212b377b"
        },
        {
          "url": "https://git.kernel.org/stable/c/27c13c5bb0948e3b5c64e59f8a903231896fab9b"
        },
        {
          "url": "https://git.kernel.org/stable/c/a3f88e3e18b51a7f654189189c762ebcdeaa7e29"
        },
        {
          "url": "https://git.kernel.org/stable/c/1cb968a2013ffa8112d52ebe605009ea1c6a582c"
        }
      ],
      "title": "nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-23297",
    "datePublished": "2026-03-25T10:26:54.156Z",
    "dateReserved": "2026-01-13T15:37:45.993Z",
    "dateUpdated": "2026-05-11T22:04:09.525Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-23297",
      "date": "2026-06-13",
      "epss": "0.00017",
      "percentile": "0.04482"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-23297\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-03-25T11:16:25.167\",\"lastModified\":\"2026-05-29T14:29:14.010\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().\\n\\nsyzbot reported memory leak of struct cred. [0]\\n\\nnfsd_nl_threads_set_doit() passes get_current_cred() to\\nnfsd_svc(), but put_cred() is not called after that.\\n\\nThe cred is finally passed down to _svc_xprt_create(),\\nwhich calls get_cred() with the cred for struct svc_xprt.\\n\\nThe ownership of the refcount by get_current_cred() is not\\ntransferred to anywhere and is just leaked.\\n\\nnfsd_svc() is also called from write_threads(), but it does\\nnot bump file-\u003ef_cred there.\\n\\nnfsd_nl_threads_set_doit() is called from sendmsg() and\\ncurrent-\u003ecred does not go away.\\n\\nLet\u0027s use current_cred() in nfsd_nl_threads_set_doit().\\n\\n[0]:\\nBUG: memory leak\\nunreferenced object 0xffff888108b89480 (size 184):\\n  comm \\\"syz-executor\\\", pid 5994, jiffies 4294943386\\n  hex dump (first 32 bytes):\\n    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\\n  backtrace (crc 369454a7):\\n    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]\\n    slab_post_alloc_hook mm/slub.c:4958 [inline]\\n    slab_alloc_node mm/slub.c:5263 [inline]\\n    kmem_cache_alloc_noprof+0x412/0x580 mm/slub.c:5270\\n    prepare_creds+0x22/0x600 kernel/cred.c:185\\n    copy_creds+0x44/0x290 kernel/cred.c:286\\n    copy_process+0x7a7/0x2870 kernel/fork.c:2086\\n    kernel_clone+0xac/0x6e0 kernel/fork.c:2651\\n    __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792\\n    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]\\n    do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94\\n    entry_SYSCALL_64_after_hwframe+0x77/0x7f\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\\n\\nnfsd: Corrige la fuga de referencia de cred en nfsd_nl_threads_set_doit().\\n\\nsyzbot inform\u00f3 una fuga de memoria de la estructura cred. [0]\\n\\nnfsd_nl_threads_set_doit() pasa get_current_cred() a nfsd_svc(), pero put_cred() no es llamada despu\u00e9s de eso.\\n\\nEl cred es finalmente pasado a _svc_xprt_create(), que llama a get_cred() con el cred para la estructura svc_xprt.\\n\\nLa propiedad del contador de referencias por get_current_cred() no es transferida a ning\u00fan lugar y simplemente se fuga.\\n\\nnfsd_svc() tambi\u00e9n es llamada desde write_threads(), pero no incrementa file-\u0026gt;f_cred all\u00ed.\\n\\nnfsd_nl_threads_set_doit() es llamada desde sendmsg() y current-\u0026gt;cred no desaparece.\\n\\nUsemos current_cred() en nfsd_nl_threads_set_doit().\\n\\n[0]:\\nERROR: fuga de memoria\\nobjeto sin referencia 0xffff888108b89480 (tama\u00f1o 184):\\n  comm \u0027syz-executor\u0027, pid 5994, jiffies 4294943386\\n  volcado hexadecimal (primeros 32 bytes):\\n    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\\n  backtrace (crc 369454a7):\\n    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]\\n    slab_post_alloc_hook mm/slub.c:4958 [inline]\\n    slab_alloc_node mm/slub.c:5263 [inline]\\n    kmem_cache_alloc_noprof+0x412/0x580 mm/slub.c:5270\\n    prepare_creds+0x22/0x600 kernel/cred.c:185\\n    copy_creds+0x44/0x290 kernel/cred.c:286\\n    copy_process+0x7a7/0x2870 kernel/fork.c:2086\\n    kernel_clone+0xac/0x6e0 kernel/fork.c:2651\\n    __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792\\n    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]\\n    do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94\\n    entry_SYSCALL_64_after_hwframe+0x77/0x7f\"}],\"metrics\":{\"cvssMetricV31\":[{\"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\":\"CWE-401\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.10\",\"versionEndExcluding\":\"6.12.77\",\"matchCriteriaId\":\"5A646065-5446-461B-BB8D-D72F3DD27B7B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.13\",\"versionEndExcluding\":\"6.18.17\",\"matchCriteriaId\":\"A5E006E4-59C7-43C1-9231-62A72219F2BA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.19\",\"versionEndExcluding\":\"6.19.7\",\"matchCriteriaId\":\"69245D10-0B71-485E-80C3-A64F077004D3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"F253B622-8837-4245-BCE5-A7BF8FC76A16\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"4AE85AD8-4641-4E7C-A2F4-305E2CD9EE64\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1cb968a2013ffa8112d52ebe605009ea1c6a582c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/27c13c5bb0948e3b5c64e59f8a903231896fab9b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/41170716421c25cd20b39e83f0e0762e212b377b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a3f88e3e18b51a7f654189189c762ebcdeaa7e29\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}"
  }
}


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…