{"id":"CVE-2026-99376","state":"PUBLISHED","title":"NFSv4/pnfs: Free the netid when draining a data-server address list","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSv4/pnfs: Free the netid when draining a data-server address list\n\nnfs4_pnfs_ds_addr_free() releases all three of an address entry's\nallocations, but the four sites that drain a decoded list before it\nreaches a data server open-code the loop and free only da_remotestr and\nthe entry, leaking da_netid.  Both layout drivers drain that list when\nnfs4_pnfs_ds_add() returned a data server already in the cache, and\nagain on their error exits.\n\nLift the drain into nfs4_pnfs_ds_addr_list_free() so an address list has\none owner.  A striping mount reaches the cached case on nearly every\nGETDEVICEINFO, since many deviceIDs name the same data servers.","publishedAt":"2026-11-19T14:23:12.813Z","updatedAt":"2026-11-19T14:38:11.505Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"3c964cb0527bd58f46cb3965e4c78033d892683b","versionType":"git"},{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"cf4c0b3acb1d0600acc39ecb2f3b22647ac6ddb1","versionType":"git"},{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"fde95d71af2c3a3efac0cd4a09f7082e3d1d7805","versionType":"git"},{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"a7c8e96d1b9fa327cbdea514d047c8295b28d49a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayoutdev.c","fs/nfs/flexfilelayout/flexfilelayoutdev.c","fs/nfs/pnfs.h","fs/nfs/pnfs_nfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayoutdev.c","fs/nfs/flexfilelayout/flexfilelayoutdev.c","fs/nfs/pnfs.h","fs/nfs/pnfs_nfs.c"]}],"references":["https://git.kernel.org/stable/c/3c964cb0527bd58f46cb3965e4c78033d892683b","https://git.kernel.org/stable/c/cf4c0b3acb1d0600acc39ecb2f3b22647ac6ddb1","https://git.kernel.org/stable/c/fde95d71af2c3a3efac0cd4a09f7082e3d1d7805","https://git.kernel.org/stable/c/a7c8e96d1b9fa327cbdea514d047c8295b28d49a"],"weaknesses":[],"ingestedAt":"2026-11-19T14:42:06.048Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99376.json","commit":"ac44738435f10e6dbe2f4dd504cf13737f9cf963","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99376","state":"PUBLISHED","datePublished":"2026-11-19T14:23:12.813Z","dateUpdated":"2026-11-19T14:38:11.505Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.411Z"},"containers":{"cna":{"title":"NFSv4/pnfs: Free the netid when draining a data-server address list","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSv4/pnfs: Free the netid when draining a data-server address list\n\nnfs4_pnfs_ds_addr_free() releases all three of an address entry's\nallocations, but the four sites that drain a decoded list before it\nreaches a data server open-code the loop and free only da_remotestr and\nthe entry, leaking da_netid.  Both layout drivers drain that list when\nnfs4_pnfs_ds_add() returned a data server already in the cache, and\nagain on their error exits.\n\nLift the drain into nfs4_pnfs_ds_addr_list_free() so an address list has\none owner.  A striping mount reaches the cached case on nearly every\nGETDEVICEINFO, since many deviceIDs name the same data servers."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"3c964cb0527bd58f46cb3965e4c78033d892683b","versionType":"git"},{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"cf4c0b3acb1d0600acc39ecb2f3b22647ac6ddb1","versionType":"git"},{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"fde95d71af2c3a3efac0cd4a09f7082e3d1d7805","versionType":"git"},{"version":"4be78d26810bc506769773ca2f81b4de65f43fd5","status":"affected","lessThan":"a7c8e96d1b9fa327cbdea514d047c8295b28d49a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayoutdev.c","fs/nfs/flexfilelayout/flexfilelayoutdev.c","fs/nfs/pnfs.h","fs/nfs/pnfs_nfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayoutdev.c","fs/nfs/flexfilelayout/flexfilelayoutdev.c","fs/nfs/pnfs.h","fs/nfs/pnfs_nfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3c964cb0527bd58f46cb3965e4c78033d892683b"},{"url":"https://git.kernel.org/stable/c/cf4c0b3acb1d0600acc39ecb2f3b22647ac6ddb1"},{"url":"https://git.kernel.org/stable/c/fde95d71af2c3a3efac0cd4a09f7082e3d1d7805"},{"url":"https://git.kernel.org/stable/c/a7c8e96d1b9fa327cbdea514d047c8295b28d49a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:38:11.505Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}