[lkml]   [2010]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[043/205] TPM: ReadPubEK output struct fix
    2.6.34-stable review patch.  If anyone has any objections, please let us know.


    From: Rajiv Andrade <>

    commit 02a077c52ef7631275a79862ffd9f3dbe9d38bc2 upstream.

    This patch adds a missing element of the ReadPubEK command output,
    that prevents future overflow of this buffer when copying the
    TPM output result into it.

    Prevents a kernel panic in case the user tries to read the
    pubek from sysfs.

    Signed-off-by: Rajiv Andrade <>
    Signed-off-by: James Morris <>
    Signed-off-by: Greg Kroah-Hartman <>

    drivers/char/tpm/tpm.h | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/char/tpm/tpm.h
    +++ b/drivers/char/tpm/tpm.h
    @@ -224,6 +224,7 @@ struct tpm_readpubek_params_out {
    u8 algorithm[4];
    u8 encscheme[2];
    u8 sigscheme[2];
    + __be32 paramsize;
    u8 parameters[12]; /*assuming RSA*/
    __be32 keysize;
    u8 modulus[256];

     \ /
      Last update: 2010-07-30 20:37    [W:0.022 / U:33.380 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site