---
title: "CVE-2018-13405"
canonical_url: "https://pkgseek.com/security/CVE-2018-13405"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2018-13405

The inode_init_owner function in fs/inode.c in the Linux kernel through 3.16 allows local users to create files with an unintended group ownership, in a scenario where a directory is SGID to a certain group and is writable by a user who is not a member of that group. Here, the non-member can trigger creation of a plain file whose group ownership is that group. The intended behavior was that the non-member can trigger creation of a directory (but not a plain file) whose group ownership is that group. The non-member can escalate privileges by making the plain file executable and SGID.

CVE-2018-13405 is rated HIGH (7.8), with 124 indexed affected package builds across 3 distributions.

- **Severity / Score**: HIGH (7.8)
- **Affected builds**: 124
- **Affected distros**: 3
- **Distros with fixed_in**: Debian, Oracle Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | usbip | 2.0+6.12.117-1 | 4.17.6-1 |
| Oracle Linux | 8 | hivex | 1.3.18-21.module+el8.5.0+20365+3abb8f5b | 1.3.18-23.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | hivex-devel | 1.3.18-21.module+el8.5.0+20365+3abb8f5b | 1.3.18-23.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-bash-completion | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-benchmarking | 1:1.40.2-27.0.1.module+el8.4.0+20093+03a97712 | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b |
| Oracle Linux | 8 | libguestfs-devel | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-gfs2 | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-gobject | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-gobject-devel | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-inspect-icons | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-java | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-java-devel | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-javadoc | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-man-pages-ja | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-man-pages-uk | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-rescue | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-rsync | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-tools | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-tools-c | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-winsupport | 8.2-1.module+el8.3.0+7860+a7792d29 | 8.6-1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libguestfs-xfs | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libiscsi | 1.18.0-8.module+el8.3.0+7860+a7792d29 | 1.18.0-8.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libiscsi-devel | 1.18.0-8.module+el8.3.0+7860+a7792d29 | 1.18.0-8.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libiscsi-utils | 1.18.0-8.module+el8.3.0+7860+a7792d29 | 1.18.0-8.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libnbd | 1.2.2-1.module+el8.3.0+7860+a7792d29 | 1.6.0-5.module+el8.6.0+20664+3dcf7c70 |
| Oracle Linux | 8 | libnbd-devel | 1.2.2-1.module+el8.3.0+7860+a7792d29 | 1.6.0-5.module+el8.6.0+20664+3dcf7c70 |
| Oracle Linux | 8 | libvirt | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-admin | 6.0.0-37.0.1.module+el8.5.0+20365+3abb8f5b | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb |
| Oracle Linux | 8 | libvirt-bash-completion | 6.0.0-37.0.1.module+el8.5.0+20365+3abb8f5b | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb |
| Oracle Linux | 8 | libvirt-client | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-config-network | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-config-nwfilter | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-interface | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-network | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-nodedev | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-nwfilter | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-qemu | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-secret | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-core | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-disk | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-gluster | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-iscsi | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-iscsi-direct | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-logical | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-mpath | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-rbd | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-driver-storage-scsi | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-daemon-kvm | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-dbus | 1.3.0-2.module+el8.3.0+7860+a7792d29 | 1.3.0-2.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-devel | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-docs | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-libs | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-lock-sanlock | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | libvirt-nss | 6.0.0-37.1.0.1.module+el8.5.0+20490+52363fdb | 8.0.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | lua-guestfs | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdfuse | 1.2.2-1.module+el8.3.0+7860+a7792d29 | 1.6.0-5.module+el8.6.0+20664+3dcf7c70 |
| Oracle Linux | 8 | nbdkit | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-bash-completion | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-basic-filters | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-basic-plugins | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-curl-plugin | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-devel | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-example-plugins | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-gzip-plugin | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-linuxdisk-plugin | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-python-plugin | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-server | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-ssh-plugin | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-vddk-plugin | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | nbdkit-xz-filter | 1.16.2-4.0.1.module+el8.3.0+7860+a7792d29 | 1.24.0-4.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | netcf | 0.2.8-12.module+el8.3.0+7860+a7792d29 | 0.2.8-12.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | netcf-devel | 0.2.8-12.module+el8.3.0+7860+a7792d29 | 0.2.8-12.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | netcf-libs | 0.2.8-12.module+el8.3.0+7860+a7792d29 | 0.2.8-12.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | perl-hivex | 1.3.18-21.module+el8.5.0+20365+3abb8f5b | 1.3.18-23.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | perl-Sys-Guestfs | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | perl-Sys-Virt | 6.0.0-1.module+el8.3.0+7860+a7792d29 | 8.0.0-1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | python3-hivex | 1.3.18-21.module+el8.5.0+20365+3abb8f5b | 1.3.18-23.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | python3-libguestfs | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | python3-libnbd | 1.2.2-1.module+el8.3.0+7860+a7792d29 | 1.6.0-5.module+el8.6.0+20664+3dcf7c70 |
| Oracle Linux | 8 | python3-libvirt | 6.0.0-1.module+el8.3.0+7860+a7792d29 | 8.0.0-1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-guest-agent | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-img | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm-block-curl | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm-block-gluster | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm-block-iscsi | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm-block-rbd | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm-block-ssh | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm-common | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | qemu-kvm-core | 15:4.2.0-60.module+el8.5.0+20640+efbe7156.2 | 15:6.2.0-11.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | ruby-hivex | 1.3.18-21.module+el8.5.0+20365+3abb8f5b | 1.3.18-23.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | ruby-libguestfs | 1:1.40.2-28.0.1.module+el8.5.0+20363+3abb8f5b | 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | seabios | 1.13.0-2.module+el8.3.0+7860+a7792d29 | 1.15.0-2.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | seabios-bin | 1.13.0-2.module+el8.3.0+7860+a7792d29 | 1.15.0-2.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | seavgabios-bin | 1.13.0-2.module+el8.3.0+7860+a7792d29 | 1.15.0-2.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | sgabios | 1:0.20170427git-3.module+el8.3.0+7860+a7792d29 | 1:0.20170427git-3.module+el8.6.0+20659+3dcf7c70 |
| Oracle Linux | 8 | sgabios-bin | 1:0.20170427git-3.module+el8.3.0+7860+a7792d29 | 1:0.20170427git-3.module+el8.6.0+20659+3dcf7c70 |

_Showing 100 of 124 total affected builds._
