[PATCH] lib: Return error on Netlink attribute length overflow

Thomas Haller thaller at redhat.com
Fri Jun 24 10:40:44 PDT 2016


On Mon, 2016-05-30 at 23:26 +0200, Przemyslaw Szczerbik wrote:
> Netlink attribute length is defined as u16. It's possible to exceed nla_len when
> creating nested attributes. Storing incorrect length due to overflow will cause
> a reader to read only a part of nested attribute or skip it entirely.
> 
> As a solution cancel the addition of a nested attribute when nla_len size is
> exceeded.
> 
> Signed-off-by: Przemyslaw Szczerbik <przemek.szczerbik at gmail.com>
> 

Hi,

merged:

https://github.com/thom311/libnl/commit/424b3b6d0ddb809869d5ba87fa927ca
086f8e5f8


Thank you,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20160624/b31a62cb/attachment.sig>


More information about the libnl mailing list