Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1842568 - nwipe logging can corrupt memory and segfault
Summary: nwipe logging can corrupt memory and segfault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nwipe
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Ambroz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-01 14:39 UTC by David Shaw
Modified: 2021-05-11 01:43 UTC (History)
2 users (show)

Fixed In Version: nwipe-0.30-1.fc34 nwipe-0.30-1.fc33 nwipe-0.30-1.el8
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-03 02:05:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Shaw 2020-06-01 14:39:58 UTC
Description of problem:

nwipe logs in memory as well as printing the result.  In 0.26, there is a possible case where a log line "slot" that was already allocated for a short log line could be re-used for a longer log line, causing a buffer overflow.

Version-Release number of selected component (if applicable):

nwipe-0.26-1.el7.x86_64

How reproducible:

Reliably, but not 100% of the time.

Steps to Reproduce:
1. Using nwipe 0.26 wipe multiple disks with the GUI enabled.

Actual results:

Segfault or glibc abort if MALLOC_CHECK_ is in use.  It can also be seen using valgrind as an illegal write.

Expected results:

None of that.


Additional info:

This is a known bug, and fixed upstream (see https://github.com/martijnvanbrummelen/nwipe/commit/8bb3f9ff148466d2d93379a3772be66220e7ca01#diff-0377db1f497fac68751312e158d8d4b5 ) so updating to nwipe 0.28 should resolve the problem.

Comment 1 Nick Law 2021-02-20 22:38:42 UTC
Confirmed. I've submitted a pull request to update nwipe to 0.30

Comment 2 Fedora Update System 2021-04-25 20:32:25 UTC
FEDORA-2021-e83994b908 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e83994b908

Comment 3 Fedora Update System 2021-04-25 20:32:48 UTC
FEDORA-2021-fb86d25ef5 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fb86d25ef5

Comment 4 Fedora Update System 2021-04-25 20:33:14 UTC
FEDORA-EPEL-2021-990f808143 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-990f808143

Comment 5 Michal Ambroz 2021-04-25 20:35:48 UTC
Thank you ... pushing the bugfix release to all supported branches

Comment 6 Fedora Update System 2021-04-26 00:57:37 UTC
FEDORA-2021-fb86d25ef5 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fb86d25ef5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fb86d25ef5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-04-26 01:46:30 UTC
FEDORA-2021-e83994b908 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e83994b908`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e83994b908

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-04-26 01:47:00 UTC
FEDORA-EPEL-2021-990f808143 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-990f808143

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-05-03 02:05:30 UTC
FEDORA-2021-fb86d25ef5 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2021-05-04 01:17:15 UTC
FEDORA-2021-e83994b908 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-05-11 01:43:36 UTC
FEDORA-EPEL-2021-990f808143 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.