{"api_version":"1","generated_at":"2026-07-23T12:19:55+00:00","cve":"CVE-2026-46096","urls":{"html":"https://cve.report/CVE-2026-46096","api":"https://cve.report/api/cve/CVE-2026-46096.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-46096","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-46096"},"summary":{"title":"tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()\n\ntpm2_read_public() calls tpm_buf_init() but fails to call\ntpm_buf_destroy() on two exit paths, leaking a page allocation:\n\n1. When name_size() returns an error (unrecognized hash algorithm),\n   the function returns directly without destroying the buffer.\n\n2. On the success path, the buffer is never destroyed before\n   returning.\n\nAll other error paths in the function correctly call\ntpm_buf_destroy() before returning.\n\nFix both by adding the missing tpm_buf_destroy() calls.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-05-27 14:17:31","updated_at":"2026-06-25 21:17:06"},"problem_types":["NVD-CWE-noinfo"],"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/f0f75a3d98b7959a8677b6363e23190f3018636b","name":"https://git.kernel.org/stable/c/f0f75a3d98b7959a8677b6363e23190f3018636b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f8775d9d9062da662cc861f9ff7722a65896d4cd","name":"https://git.kernel.org/stable/c/f8775d9d9062da662cc861f9ff7722a65896d4cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2f434be87e256fd58254f60ddf5d7d58e775ca0b","name":"https://git.kernel.org/stable/c/2f434be87e256fd58254f60ddf5d7d58e775ca0b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-46096","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46096","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 20eda7c74b69fe9e1caf9b930a5c016bf8d755fa f8775d9d9062da662cc861f9ff7722a65896d4cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bda1cbf73c6e241267c286427f2ed52b5735d872 2f434be87e256fd58254f60ddf5d7d58e775ca0b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bda1cbf73c6e241267c286427f2ed52b5735d872 f0f75a3d98b7959a8677b6363e23190f3018636b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a3b7eb67225c486a2da357c5db3e386f4e64bcde git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18.3 6.18.27 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.64 6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.27 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0.4 7.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2026","cve_id":"46096","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":{"cve_year":"2026","cve_id":"46096","cve":"CVE-2026-46096","epss":"0.000170000","percentile":"0.042650000","score_date":"2026-06-01","updated_at":"2026-06-02 00:05:21"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/char/tpm/tpm2-sessions.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"f8775d9d9062da662cc861f9ff7722a65896d4cd","status":"affected","version":"20eda7c74b69fe9e1caf9b930a5c016bf8d755fa","versionType":"git"},{"lessThan":"2f434be87e256fd58254f60ddf5d7d58e775ca0b","status":"affected","version":"bda1cbf73c6e241267c286427f2ed52b5735d872","versionType":"git"},{"lessThan":"f0f75a3d98b7959a8677b6363e23190f3018636b","status":"affected","version":"bda1cbf73c6e241267c286427f2ed52b5735d872","versionType":"git"},{"status":"affected","version":"a3b7eb67225c486a2da357c5db3e386f4e64bcde","versionType":"git"},{"lessThan":"6.18.27","status":"affected","version":"6.18.3","versionType":"semver"},{"lessThan":"6.13","status":"affected","version":"6.12.64","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/char/tpm/tpm2-sessions.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.19"},{"lessThan":"6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.27","versionType":"semver"},{"lessThanOrEqual":"7.0.*","status":"unaffected","version":"7.0.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.27","versionStartIncluding":"6.18.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0.4","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.64","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()\n\ntpm2_read_public() calls tpm_buf_init() but fails to call\ntpm_buf_destroy() on two exit paths, leaking a page allocation:\n\n1. When name_size() returns an error (unrecognized hash algorithm),\n   the function returns directly without destroying the buffer.\n\n2. On the success path, the buffer is never destroyed before\n   returning.\n\nAll other error paths in the function correctly call\ntpm_buf_destroy() before returning.\n\nFix both by adding the missing tpm_buf_destroy() calls."}],"providerMetadata":{"dateUpdated":"2026-06-14T17:54:06.722Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/f8775d9d9062da662cc861f9ff7722a65896d4cd"},{"url":"https://git.kernel.org/stable/c/2f434be87e256fd58254f60ddf5d7d58e775ca0b"},{"url":"https://git.kernel.org/stable/c/f0f75a3d98b7959a8677b6363e23190f3018636b"}],"title":"tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-46096","datePublished":"2026-05-27T12:58:56.233Z","dateReserved":"2026-05-13T15:03:33.097Z","dateUpdated":"2026-06-14T17:54:06.722Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-05-27 14:17:31","lastModifiedDate":"2026-06-25 21:17:06","problem_types":["NVD-CWE-noinfo"],"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":"6.12.64","versionEndExcluding":"6.13","matchCriteriaId":"87DC3D61-429B-4C73-A249-C5E443A6FFE1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.3","versionEndExcluding":"6.18.27","matchCriteriaId":"93C4FAEA-8BA5-46B6-A5B5-4995751F206E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.0.4","matchCriteriaId":"CDB78D6D-22C3-4154-B0D0-94AF1CE5C2E3"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"46096","Ordinal":"1","Title":"tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public","CVE":"CVE-2026-46096","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"46096","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()\n\ntpm2_read_public() calls tpm_buf_init() but fails to call\ntpm_buf_destroy() on two exit paths, leaking a page allocation:\n\n1. When name_size() returns an error (unrecognized hash algorithm),\n   the function returns directly without destroying the buffer.\n\n2. On the success path, the buffer is never destroyed before\n   returning.\n\nAll other error paths in the function correctly call\ntpm_buf_destroy() before returning.\n\nFix both by adding the missing tpm_buf_destroy() calls.","Type":"Description","Title":"tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public"}]}}}