dd segfault

Bug #64527 reported by a.sappia
256
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: coreutils

try
# dd if=/dev/zero of=/var/tmp/blank.img bs=1k count=720
720+0 records in
720+0 records out
Segmentation fault
#

as I tried this happens just on ubuntu coreutils version...
SegFault may brings security related issues.

Revision history for this message
PaulSchulz (paulschulz) wrote :

A couple of questions for you?
- What version of ubuntu are you using?
- 32 or 64 bit? or powerpc?
- Does it work if you just do the following in your home directory, as you?

$ dd if=/dev/zero of=blank.img bs=1k count=720

I was able to run the command without any problems on i386 and powerpc, as root and as a user.

$ dd if=/dev/zero of=/var/tmp/blank.img bs=1k count=720
720+0 records in
720+0 records out
737280 bytes (737 kB) copied, 0.010394 seconds, 70.9 MB/s

Changed in coreutils:
status: Unconfirmed → Needs Info
Revision history for this message
PaulSchulz (paulschulz) wrote :

Thank you for reporting the bug. Is is a duplicate and a known issue with dd. See bug 64567 for details.

As a workaround, setting LANG=C will allow dd to work.

$ export LANG=C
$ dd if=/dev/zero of=/var/tmp/blank.img bs=1k count=720

Revision history for this message
PaulSchulz (paulschulz) wrote :

Sorry.. bug 42264

Changed in coreutils:
status: Needs Info → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package coreutils - 8.32-3ubuntu1

---------------
coreutils (8.32-3ubuntu1) groovy; urgency=medium

  * Merge with Debian unstable (LP: #1888046). Remaining changes:
    - debian/rules:
      + Allow crossbuilding
      + Run tests
      + Ignore the cut-huge-range test failure on armhf, only seen on
        the buildds.
    - debian/tests:
      + Add dep8 tests
    - debian/patches/80_fedora_sysinfo.patch
      + Make 'uname -i -p' return the real processor/hardware,
        instead of unknown.
    - debian/patches/99_float_endian_detection.patch:
      + Fix detection of floating point endianness.
    - d/p/treat-devtmpfs-and-squashfs-as-dummy-filesystems.patch:
      + Avoid displaying snaps in output from df and other tools, by
        excluding display of squashfs filesystems.
        (LP #1219529, #1756595)
      + Exclude devtmpfs filesystems in output from df and other tools
        since it is a dummy filesystem.
        (LP #1219529)
  * Refresh d/patches/.
  * Fix FTBFS on ARM64.
    - d/p/restore-ls-behavior-8.31.patch: Upstream patch to restore
      coreutils ls' 8.31 behavior on removed directories, which is
      necessary to prevent using SYS_getdents that doesn't exist on
      ARM64.
    - d/p/improve-removed-directory-test.patch: Upstream patch to
      improve ls' removed-directory test.

 -- Sergio Durigan Junior <email address hidden> Fri, 24 Jul 2020 15:01:15 -0400

Changed in coreutils (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.