[Bug 1618726] Re: ifup & ifdown crash if multiple interfaces are listed in no-scripts
Michael Hudson-Doyle
michael.hudson+lp at canonical.com
Wed Sep 14 00:43:33 UTC 2016
I posted https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837732
** Bug watch added: Debian Bug tracker #837732
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837732
** Also affects: ifupdown (Ubuntu Xenial)
Importance: Undecided
Status: New
** Description changed:
+ [Impact]
+ ifup and ifupdown segfault if multiple interfaces are listed in no-scripts
+
This is a trivially reproducible crash in ifup/ifdown, with a patch
attached.
+ [Test Case]
Steps to reproduce:
1) echo no-scripts foo bar >> /etc/network/interfaces
2) ifup baz
Expected results:
Unknown interface baz
Actual results:
Segmentation fault (core dumped)
It's irrelevant whether the second interface is on the same no-scripts line or separate one. This will crash just the same:
echo no-scripts foo >> /etc/network/interfaces
echo no-scripts bar >> /etc/network/interfaces
+
+ [Regression potential]
+ Seems slight. The patch fixes a clear bug in code that is only used to process the no-scripts (and apparently no-auto-down) stanzas.
** Changed in: ifupdown (Ubuntu)
Status: New => Fix Committed
** Changed in: ifupdown (Ubuntu Xenial)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1618726
Title:
ifup & ifdown crash if multiple interfaces are listed in no-scripts
Status in ifupdown package in Ubuntu:
Fix Committed
Status in ifupdown source package in Xenial:
In Progress
Bug description:
[Impact]
ifup and ifupdown segfault if multiple interfaces are listed in no-scripts
This is a trivially reproducible crash in ifup/ifdown, with a patch
attached.
[Test Case]
Steps to reproduce:
1) echo no-scripts foo bar >> /etc/network/interfaces
2) ifup baz
Expected results:
Unknown interface baz
Actual results:
Segmentation fault (core dumped)
It's irrelevant whether the second interface is on the same no-scripts line or separate one. This will crash just the same:
echo no-scripts foo >> /etc/network/interfaces
echo no-scripts bar >> /etc/network/interfaces
[Regression potential]
Seems slight. The patch fixes a clear bug in code that is only used to process the no-scripts (and apparently no-auto-down) stanzas.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1618726/+subscriptions
More information about the foundations-bugs
mailing list