Description
In the Linux kernel, the following vulnerability has been resolved: tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public() tpm2_read_public() calls tpm_buf_init() but fails to call tpm_buf_destroy() on two exit paths, leaking a page allocation: 1. When name_size() returns an error (unrecognized hash algorithm), the function returns directly without destroying the buffer. 2. On the success path, the buffer is never destroyed before returning. All other error paths in the function correctly call tpm_buf_destroy() before returning. Fix both by adding the missing tpm_buf_destroy() calls.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
20eda7c74b69fe9e1caf9b930a5c016bf8d755fa to < f8775d9d9062da662cc861f9ff7722a65896d4cdaffectedbda1cbf73c6e241267c286427f2ed52b5735d872 to < 2f434be87e256fd58254f60ddf5d7d58e775ca0baffectedbda1cbf73c6e241267c286427f2ed52b5735d872 to < f0f75a3d98b7959a8677b6363e23190f3018636baffecteda3b7eb67225c486a2da357c5db3e386f4e64bcdeaffected6.18.3 to < 6.18.27affected6.12.64 to < 6.13affected
Linux Linux
Default version status: affected
6.19affected0 to < 6.19unaffected6.18.27 to ≤ 6.18.*unaffected7.0.4 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected