{"api_version":"1","generated_at":"2026-07-24T20:57:35+00:00","cve":"CVE-2025-71150","urls":{"html":"https://cve.report/CVE-2025-71150","api":"https://cve.report/api/cve/CVE-2025-71150.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-71150","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-71150"},"summary":{"title":"ksmbd: Fix refcount leak when invalid session is found on session lookup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: Fix refcount leak when invalid session is found on session lookup\n\nWhen a session is found but its state is not SMB2_SESSION_VALID, It\nindicates that no valid session was found, but it is missing to decrement\nthe reference count acquired by the session lookup, which results in\na reference count leak. This patch fixes the issue by explicitly calling\nksmbd_user_session_put to release the reference to the session.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-01-23 15:16:05","updated_at":"2026-04-18 09:16:13"},"problem_types":["NVD-CWE-Other"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"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"}}],"references":[{"url":"https://git.kernel.org/stable/c/11fe566b442e3bc2774191740fd377739a87a1c0","name":"https://git.kernel.org/stable/c/11fe566b442e3bc2774191740fd377739a87a1c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7","name":"https://git.kernel.org/stable/c/8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/02e06785e85b4bd86ef3d23b7c8d87acc76773d5","name":"https://git.kernel.org/stable/c/02e06785e85b4bd86ef3d23b7c8d87acc76773d5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cafb57f7bdd57abba87725eb4e82bbdca4959644","name":"https://git.kernel.org/stable/c/cafb57f7bdd57abba87725eb4e82bbdca4959644","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0fb87b28cafae71e9c8248432cc3a6a1fd759efc","name":"https://git.kernel.org/stable/c/0fb87b28cafae71e9c8248432cc3a6a1fd759efc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e54fb2a4772545701766cba08aab20de5eace8cd","name":"https://git.kernel.org/stable/c/e54fb2a4772545701766cba08aab20de5eace8cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-71150","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71150","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2107ab40629aeabbec369cf34b8cf0f288c3eb1b 11fe566b442e3bc2774191740fd377739a87a1c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 37a0e2b362b3150317fb6e2139de67b1e29ae5ff 0fb87b28cafae71e9c8248432cc3a6a1fd759efc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 450a844c045ff0895d41b05a1cbe8febd1acfcfd e54fb2a4772545701766cba08aab20de5eace8cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a39e31e22a535d47b14656a7d6a893c7f6cf758c 02e06785e85b4bd86ef3d23b7c8d87acc76773d5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b95629435b84b9ecc0c765995204a4d8a913ed52 8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b95629435b84b9ecc0c765995204a4d8a913ed52 cafb57f7bdd57abba87725eb4e82bbdca4959644 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.203 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.160 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.120 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.64 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.3 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2025","cve_id":"71150","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/server/mgmt/user_session.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"11fe566b442e3bc2774191740fd377739a87a1c0","status":"affected","version":"2107ab40629aeabbec369cf34b8cf0f288c3eb1b","versionType":"git"},{"lessThan":"0fb87b28cafae71e9c8248432cc3a6a1fd759efc","status":"affected","version":"37a0e2b362b3150317fb6e2139de67b1e29ae5ff","versionType":"git"},{"lessThan":"e54fb2a4772545701766cba08aab20de5eace8cd","status":"affected","version":"450a844c045ff0895d41b05a1cbe8febd1acfcfd","versionType":"git"},{"lessThan":"02e06785e85b4bd86ef3d23b7c8d87acc76773d5","status":"affected","version":"a39e31e22a535d47b14656a7d6a893c7f6cf758c","versionType":"git"},{"lessThan":"8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7","status":"affected","version":"b95629435b84b9ecc0c765995204a4d8a913ed52","versionType":"git"},{"lessThan":"cafb57f7bdd57abba87725eb4e82bbdca4959644","status":"affected","version":"b95629435b84b9ecc0c765995204a4d8a913ed52","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/server/mgmt/user_session.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.13"},{"lessThan":"6.13","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.203","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.160","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.120","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.64","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.3","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.19","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.203","versionStartIncluding":"5.15.176","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.160","versionStartIncluding":"6.1.121","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.120","versionStartIncluding":"6.6.67","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.64","versionStartIncluding":"6.12.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.3","versionStartIncluding":"6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19","versionStartIncluding":"6.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: Fix refcount leak when invalid session is found on session lookup\n\nWhen a session is found but its state is not SMB2_SESSION_VALID, It\nindicates that no valid session was found, but it is missing to decrement\nthe reference count acquired by the session lookup, which results in\na reference count leak. This patch fixes the issue by explicitly calling\nksmbd_user_session_put to release the reference to the session."}],"providerMetadata":{"dateUpdated":"2026-04-18T08:57:13.286Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/11fe566b442e3bc2774191740fd377739a87a1c0"},{"url":"https://git.kernel.org/stable/c/0fb87b28cafae71e9c8248432cc3a6a1fd759efc"},{"url":"https://git.kernel.org/stable/c/e54fb2a4772545701766cba08aab20de5eace8cd"},{"url":"https://git.kernel.org/stable/c/02e06785e85b4bd86ef3d23b7c8d87acc76773d5"},{"url":"https://git.kernel.org/stable/c/8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7"},{"url":"https://git.kernel.org/stable/c/cafb57f7bdd57abba87725eb4e82bbdca4959644"}],"title":"ksmbd: Fix refcount leak when invalid session is found on session lookup","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-71150","datePublished":"2026-01-23T14:15:16.898Z","dateReserved":"2026-01-13T15:30:19.662Z","dateUpdated":"2026-04-18T08:57:13.286Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-01-23 15:16:05","lastModifiedDate":"2026-04-18 09:16:13","problem_types":["NVD-CWE-Other"],"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}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.176","versionEndExcluding":"5.16","matchCriteriaId":"B11177EA-CF04-4864-B5AE-7597A4239BC3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.121","versionEndExcluding":"6.1.160","matchCriteriaId":"D8983128-8A47-4317-B02E-D9072E423085"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.67","versionEndExcluding":"6.6.120","matchCriteriaId":"B82378A7-0B64-484B-B28D-3A09913AEE0E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.6","versionEndExcluding":"6.12.64","matchCriteriaId":"2D247316-17E2-4AF9-B5C9-DFF7DCADAE1E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13.1","versionEndExcluding":"6.18.3","matchCriteriaId":"1175098E-51C5-4022-AD0A-C8985F2787C6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.13:-:*:*:*:*:*:*","matchCriteriaId":"5A3F9505-6B98-4269-8B81-127E55A1BF00"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*","matchCriteriaId":"DE491969-75AE-4A6B-9A58-8FC5AF98798F"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*","matchCriteriaId":"93C0660D-7FB8-4FBA-892A-B064BA71E49E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*","matchCriteriaId":"034C36A6-C481-41F3-AE9A-D116E5BE6895"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*","matchCriteriaId":"8AF9DC49-2085-4FFB-A7E3-73DFAFECC7F2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.13:rc7:*:*:*:*:*:*","matchCriteriaId":"5DFCDFB8-4FD0-465A-9076-D813D78FE51B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*","matchCriteriaId":"17B67AA7-40D6-4AFA-8459-F200F3D7CFD1"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"71150","Ordinal":"1","Title":"ksmbd: Fix refcount leak when invalid session is found on sessio","CVE":"CVE-2025-71150","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"71150","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: Fix refcount leak when invalid session is found on session lookup\n\nWhen a session is found but its state is not SMB2_SESSION_VALID, It\nindicates that no valid session was found, but it is missing to decrement\nthe reference count acquired by the session lookup, which results in\na reference count leak. This patch fixes the issue by explicitly calling\nksmbd_user_session_put to release the reference to the session.","Type":"Description","Title":"ksmbd: Fix refcount leak when invalid session is found on sessio"}]}}}