{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "d0f1e713010e7706bd50552a0fb58dc7537fa2b4"
            },
            {
              "fixed": "3b35ae5f771b93c2b1a49fa72f70f6a522b685d1"
            },
            {
              "fixed": "268bf1aa5b52de142347de75098700f616490341"
            },
            {
              "fixed": "e9d1ef4cade7b6eacea46e875862b00252b8edb0"
            },
            {
              "fixed": "80317133e06a3ca4f5a3343e9f0e0df1a4b7a023"
            },
            {
              "fixed": "8a88208eed4173a572f195c0adc9e5b7545f7e81"
            },
            {
              "fixed": "0f2826c8db7e40a423bb0afc06e748341eef70e7"
            },
            {
              "fixed": "9ff338af0e002fe217cfa16b1289b76f6b21fc72"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139783.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\novl: inherit FMODE_NONOTIFY when reading directory layers\n\nListing a merged or impure overlay directory opens the real layer\ndirectories from ovl_dir_read(), when the readdir cache is filled.\nThose opens use plain ovl_path_open(), so when the directory fd is\none that fanotify created for a permission event, they can still raise\nFS_OPEN_PERM.  A listener that also marks the backing filesystem and\ncalls getdents() on the event fd before answering then deadlocks the\nsame way as with the directory open fixed by the previous commit.\n\nStore the overlay user file in struct ovl_readdir_data and pass it to\novl_path_open_realfile() from ovl_dir_read(), for both the merged and\nthe impure cache.  Internal readers such as ovl_check_empty_dir() and\nthe mount-time workdir cleanup still pass no user file.\n\nA note about severity and real world impact: The FAN_OPEN_PERM event is\ntraditionally used by anti-malware protection agents and security/audit\nagents. The scope that is often used in those use cases is FAN_MARK_MOUNT\nand agents typically monitor multiple mounts in a mount namespace.\nFAN_OPEN_PERM from directory open requires user opt-in with FAN_ONDIR.\nIt is often not the case that anti-malware agents monitor open of\ndirectories. Security/audit engines are more likely to opt-into\nFAN_OPEN_PERM on directories, but are less likely to list the content\nof a directory within the scope of FAN_OPEN_PERM event, so the real\nworld impact of this bug is likely not significant.",
  "id": "CVE-2026-139783",
  "modified": "2026-11-30T14:45:15.364504858Z",
  "published": "2026-11-30T13:37:57.778Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0f2826c8db7e40a423bb0afc06e748341eef70e7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/268bf1aa5b52de142347de75098700f616490341"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3b35ae5f771b93c2b1a49fa72f70f6a522b685d1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/80317133e06a3ca4f5a3343e9f0e0df1a4b7a023"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8a88208eed4173a572f195c0adc9e5b7545f7e81"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9ff338af0e002fe217cfa16b1289b76f6b21fc72"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d0f1e713010e7706bd50552a0fb58dc7537fa2b4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e9d1ef4cade7b6eacea46e875862b00252b8edb0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139783.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139783"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ovl: inherit FMODE_NONOTIFY when reading directory layers"
}