lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 13 Aug 2020 12:25:22 +0000
From:   "Hans-Christian Egtvedt (hegtvedt)" <>
To:     "" <>
Subject: ethtool 5.8 segfaults when changing settings on a device


I am testing ethtool 5.8, and I noticed it segfaulted with the command
   ethtool -s eth0 autoneg on

Backtrace as follows:
(gdb) run -s eth0 autoneg on
Starting program: /tmp/ethtool-5.8 -s eth0 autoneg on

Program received signal SIGSEGV, Segmentation fault.
0x0040bef8 in do_sset ()
(gdb) bt
#0  0x0040bef8 in do_sset ()
#1  0x00407d9c in do_ioctl_glinksettings ()
#2  0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

I then tested reverting

And the command now passes.

I am running ethtool on top of Linux 4.4.232, hence there is no support 

Is the bef780467fa7aa95dca3ed5cc3ebb8bec5882f08 patch not correct, one 
should check link_usettings pointer for non-NULL before memset'ing?

Since do_ioctl_glinksettings() will return NULL upon failure, which 
matches well with kernels not supporting ETHTOOL_GLINKSETTINGS ioctl.

Best regards, Hans-Christian Noren Egtvedt

Powered by blists - more mailing lists