{"id":"CVE-2026-23038","summary":"pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()\n\nIn nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails,\nthe function jumps to the out_scratch label without freeing the already\nallocated dsaddrs list, leading to a memory leak.\n\nFix this by jumping to the out_err_drain_dsaddrs label, which properly\nfrees the dsaddrs list before cleaning up other resources.","modified":"2026-04-02T17:29:23.385369Z","published":"2026-01-31T11:42:32.599Z","related":["SUSE-SU-2026:0962-1","SUSE-SU-2026:1081-1","SUSE-SU-2026:20838-1","SUSE-SU-2026:20931-1","openSUSE-SU-2026:20416-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23038.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0c728083654f0066f5e10a1d2b0bd0907af19a58"},{"type":"WEB","url":"https://git.kernel.org/stable/c/27c90d8ed81e7a289c9fe41b5e31d8bb609a3385"},{"type":"WEB","url":"https://git.kernel.org/stable/c/34b9dd179818ff7af2b36410985fd8166573c62d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/869862056e100973e76ce9f5f1b01837771b7722"},{"type":"WEB","url":"https://git.kernel.org/stable/c/86da7efd12295a7e2b4abde5e5984c821edd938f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e2dde5dafb80f1af4028ed10ad255f42af71c784"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23038.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23038"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d67ae825a59d639e4d8b82413af84d854617a87e"},{"fixed":"e2dde5dafb80f1af4028ed10ad255f42af71c784"},{"fixed":"27c90d8ed81e7a289c9fe41b5e31d8bb609a3385"},{"fixed":"34b9dd179818ff7af2b36410985fd8166573c62d"},{"fixed":"869862056e100973e76ce9f5f1b01837771b7722"},{"fixed":"86da7efd12295a7e2b4abde5e5984c821edd938f"},{"fixed":"ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb"},{"fixed":"0c728083654f0066f5e10a1d2b0bd0907af19a58"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23038.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"5.10.249"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.199"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.162"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.122"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.67"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23038.json"}}],"schema_version":"1.7.5"}