bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2007-4998

6.9medium

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

cp, when running with an option to preserve symlinks on multiple OSes, allows local, user-assisted attackers to overwrite arbitrary files via a symlink attack using crafted directories containing multiple source files that are copied to the same destination.

Published 2008-01-31NVD

CVSS 2.0Local · no authentication

How it is reached

Attack vector
Local
Attack complexity
Medium
Authentication
None

What it costs

Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:L/AC:M/Au:N/C:C/I:C/A:C

References 3
Review Av26.10.0x86_64False positive✓ accepted by a member, 2026-11-17 · settles 8 of 8

Fable 5.1 · high confidence · 2026-11-05

CVE-2007-4998 is a bug in the userspace cp utility (GNU coreutils cp -a/--preserve=links symlink handling, fixed in coreutils 6.9.90 / the 2007 Red Hat bug 356471 fix); it has nothing to do with the Linux kernel.

NVD's CPE list for this CVE tags several operating systems including linux:linux_kernel as the "platform", which is why it matched our kernel package, but no kernel source implements cp.

The Linux 6.18.60 tree contains no such code, none of the 139 applied patches reference it, and the image does not even ship GNU coreutils (BR2_PACKAGE_COREUTILS is not set); cp comes from BusyBox 1.37.0, a separate implementation never affected by this coreutils bug.

Evidence 5
  1. Vulnerability is in the userspace cp command (coreutils), not in the kernel; the CPE product mapping to linux_kernel is a platform tag, not the vulnerable component

    NVD CVE-2007-4998 description / bugzilla.redhat.com 356471

  2. Kernel source tree; contains no cp utility implementation that could carry this bug

    output/build/linux-6.18.60/ (tree listing)

  3. 139 patches applied, none reference CVE-2007-4998 or cp/symlink handling

    output/build/linux-6.18.60/.applied_patches_list

  4. GNU coreutils (the actually affected package) is not built into the image

    output/.config: # BR2_PACKAGE_COREUTILS is not set

  5. cp on the device is BusyBox 1.37.0's implementation, which is a different code base from coreutils and not covered by this CVE

    output/.config: BR2_PACKAGE_BUSYBOX=y; output/build/busybox-1.37.0/.config: CONFIG_CP=y

Version and patches

CVE affects GNU coreutils cp before 6.9.90 (and vendor cp in some 2007-era OSes). Linux kernel 6.18.60 is not a valid target for this CVE at any version; the NVD linux_kernel CPE is a platform tag. No Buildroot patch addresses it because none is needed.

Recommendation

Document as N/A (false positive from NVD platform CPE). Consider adding an IGNORE_CVES entry or SBOM matcher exclusion for CVE-2007-4998 against the linux package to suppress future matches. No action on the kernel.

Open questions

None.

Members of Kernel Kit decide. Sign in if you are one.