cve-2024-56619
Vulnerability from cvelistv5
Published
2024-12-27 14:51
Modified
2025-02-11 15:45
Summary
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry() Syzbot reported that when searching for records in a directory where the inode's i_size is corrupted and has a large value, memory access outside the folio/page range may occur, or a use-after-free bug may be detected if KASAN is enabled. This is because nilfs_last_byte(), which is called by nilfs_find_entry() and others to calculate the number of valid bytes of directory data in a page from i_size and the page index, loses the upper 32 bits of the 64-bit size information due to an inappropriate type of local variable to which the i_size value is assigned. This caused a large byte offset value due to underflow in the end address calculation in the calling nilfs_find_entry(), resulting in memory access that exceeds the folio/page size. Fix this issue by changing the type of the local variable causing the bit loss from "unsigned int" to "u64". The return value of nilfs_last_byte() is also of type "unsigned int", but it is truncated so as not to exceed PAGE_SIZE and no bit loss occurs, so no change is required.
Impacted products
Vendor Product Version
Linux Linux Version: 2ba466d74ed74f073257f86e61519cb8f8f46184
Version: 2ba466d74ed74f073257f86e61519cb8f8f46184
Version: 2ba466d74ed74f073257f86e61519cb8f8f46184
Version: 2ba466d74ed74f073257f86e61519cb8f8f46184
Version: 2ba466d74ed74f073257f86e61519cb8f8f46184
Version: 2ba466d74ed74f073257f86e61519cb8f8f46184
Version: 2ba466d74ed74f073257f86e61519cb8f8f46184
Create a notification for this product.
   Linux Linux Version: 2.6.30
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-56619",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-02-11T15:41:59.486282Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-02-11T15:45:22.383Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nilfs2/dir.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "09d6d05579fd46e61abf6e457bb100ff11f3a9d3",
              "status": "affected",
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "versionType": "git"
            },
            {
              "lessThan": "e3732102a9d638d8627d14fdf7b208462f0520e0",
              "status": "affected",
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "versionType": "git"
            },
            {
              "lessThan": "48eb6e7404948032bbe811c5affbe39f6b316951",
              "status": "affected",
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "versionType": "git"
            },
            {
              "lessThan": "5af8366625182f01f6d8465c9a3210574673af57",
              "status": "affected",
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "versionType": "git"
            },
            {
              "lessThan": "c3afea07477baccdbdec4483f8d5e59d42a3f67f",
              "status": "affected",
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "versionType": "git"
            },
            {
              "lessThan": "31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e",
              "status": "affected",
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "versionType": "git"
            },
            {
              "lessThan": "985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d",
              "status": "affected",
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nilfs2/dir.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.30"
            },
            {
              "lessThan": "2.6.30",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.287",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.231",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.174",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.66",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.13",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()\n\nSyzbot reported that when searching for records in a directory where the\ninode\u0027s i_size is corrupted and has a large value, memory access outside\nthe folio/page range may occur, or a use-after-free bug may be detected if\nKASAN is enabled.\n\nThis is because nilfs_last_byte(), which is called by nilfs_find_entry()\nand others to calculate the number of valid bytes of directory data in a\npage from i_size and the page index, loses the upper 32 bits of the 64-bit\nsize information due to an inappropriate type of local variable to which\nthe i_size value is assigned.\n\nThis caused a large byte offset value due to underflow in the end address\ncalculation in the calling nilfs_find_entry(), resulting in memory access\nthat exceeds the folio/page size.\n\nFix this issue by changing the type of the local variable causing the bit\nloss from \"unsigned int\" to \"u64\".  The return value of nilfs_last_byte()\nis also of type \"unsigned int\", but it is truncated so as not to exceed\nPAGE_SIZE and no bit loss occurs, so no change is required."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-01-20T06:24:17.081Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/09d6d05579fd46e61abf6e457bb100ff11f3a9d3"
        },
        {
          "url": "https://git.kernel.org/stable/c/e3732102a9d638d8627d14fdf7b208462f0520e0"
        },
        {
          "url": "https://git.kernel.org/stable/c/48eb6e7404948032bbe811c5affbe39f6b316951"
        },
        {
          "url": "https://git.kernel.org/stable/c/5af8366625182f01f6d8465c9a3210574673af57"
        },
        {
          "url": "https://git.kernel.org/stable/c/c3afea07477baccdbdec4483f8d5e59d42a3f67f"
        },
        {
          "url": "https://git.kernel.org/stable/c/31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e"
        },
        {
          "url": "https://git.kernel.org/stable/c/985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d"
        }
      ],
      "title": "nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-56619",
    "datePublished": "2024-12-27T14:51:23.516Z",
    "dateReserved": "2024-12-27T14:03:06.016Z",
    "dateUpdated": "2025-02-11T15:45:22.383Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-56619\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-12-27T15:15:21.437\",\"lastModified\":\"2025-02-11T16:15:45.830\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()\\n\\nSyzbot reported that when searching for records in a directory where the\\ninode\u0027s i_size is corrupted and has a large value, memory access outside\\nthe folio/page range may occur, or a use-after-free bug may be detected if\\nKASAN is enabled.\\n\\nThis is because nilfs_last_byte(), which is called by nilfs_find_entry()\\nand others to calculate the number of valid bytes of directory data in a\\npage from i_size and the page index, loses the upper 32 bits of the 64-bit\\nsize information due to an inappropriate type of local variable to which\\nthe i_size value is assigned.\\n\\nThis caused a large byte offset value due to underflow in the end address\\ncalculation in the calling nilfs_find_entry(), resulting in memory access\\nthat exceeds the folio/page size.\\n\\nFix this issue by changing the type of the local variable causing the bit\\nloss from \\\"unsigned int\\\" to \\\"u64\\\".  The return value of nilfs_last_byte()\\nis also of type \\\"unsigned int\\\", but it is truncated so as not to exceed\\nPAGE_SIZE and no bit loss occurs, so no change is required.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nilfs2: se corrige un posible acceso a memoria fuera de los l\u00edmites en nilfs_find_entry() Syzbot inform\u00f3 que al buscar registros en un directorio donde el i_size del inodo est\u00e1 da\u00f1ado y tiene un valor grande, puede ocurrir un acceso a memoria fuera del rango de folio/p\u00e1gina, o puede detectarse un error de use-after-free si KASAN est\u00e1 habilitado. Esto se debe a que nilfs_last_byte(), que es llamado por nilfs_find_entry() y otros para calcular la cantidad de bytes v\u00e1lidos de datos de directorio en una p\u00e1gina a partir de i_size y el \u00edndice de p\u00e1gina, pierde los 32 bits superiores de la informaci\u00f3n de tama\u00f1o de 64 bits debido a un tipo inadecuado de variable local a la que se asigna el valor de i_size. Esto caus\u00f3 un valor de desplazamiento de bytes grande debido al desbordamiento en el c\u00e1lculo de la direcci\u00f3n final en la llamada nilfs_find_entry(), lo que result\u00f3 en un acceso a memoria que excede el tama\u00f1o de folio/p\u00e1gina. Solucione este problema cambiando el tipo de la variable local que causa la p\u00e9rdida de bits de \\\"unsigned int\\\" a \\\"u64\\\". El valor de retorno de nilfs_last_byte() tambi\u00e9n es del tipo \\\"unsigned int\\\", pero se trunca para no superar PAGE_SIZE y no se produce ninguna p\u00e9rdida de bits, por lo que no se requiere ning\u00fan cambio.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/09d6d05579fd46e61abf6e457bb100ff11f3a9d3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/48eb6e7404948032bbe811c5affbe39f6b316951\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5af8366625182f01f6d8465c9a3210574673af57\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c3afea07477baccdbdec4483f8d5e59d42a3f67f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e3732102a9d638d8627d14fdf7b208462f0520e0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-56619\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-02-11T15:41:59.486282Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-416\", \"description\": \"CWE-416 Use After Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-02-11T15:42:01.033Z\"}}], \"cna\": {\"title\": \"nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2ba466d74ed74f073257f86e61519cb8f8f46184\", \"lessThan\": \"09d6d05579fd46e61abf6e457bb100ff11f3a9d3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2ba466d74ed74f073257f86e61519cb8f8f46184\", \"lessThan\": \"e3732102a9d638d8627d14fdf7b208462f0520e0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2ba466d74ed74f073257f86e61519cb8f8f46184\", \"lessThan\": \"48eb6e7404948032bbe811c5affbe39f6b316951\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2ba466d74ed74f073257f86e61519cb8f8f46184\", \"lessThan\": \"5af8366625182f01f6d8465c9a3210574673af57\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2ba466d74ed74f073257f86e61519cb8f8f46184\", \"lessThan\": \"c3afea07477baccdbdec4483f8d5e59d42a3f67f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2ba466d74ed74f073257f86e61519cb8f8f46184\", \"lessThan\": \"31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2ba466d74ed74f073257f86e61519cb8f8f46184\", \"lessThan\": \"985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d\", \"versionType\": \"git\"}], \"programFiles\": [\"fs/nilfs2/dir.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2.6.30\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"2.6.30\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.287\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.231\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.174\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.120\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.66\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12.5\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.12.*\"}, {\"status\": \"unaffected\", \"version\": \"6.13\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/nilfs2/dir.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/09d6d05579fd46e61abf6e457bb100ff11f3a9d3\"}, {\"url\": \"https://git.kernel.org/stable/c/e3732102a9d638d8627d14fdf7b208462f0520e0\"}, {\"url\": \"https://git.kernel.org/stable/c/48eb6e7404948032bbe811c5affbe39f6b316951\"}, {\"url\": \"https://git.kernel.org/stable/c/5af8366625182f01f6d8465c9a3210574673af57\"}, {\"url\": \"https://git.kernel.org/stable/c/c3afea07477baccdbdec4483f8d5e59d42a3f67f\"}, {\"url\": \"https://git.kernel.org/stable/c/31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e\"}, {\"url\": \"https://git.kernel.org/stable/c/985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()\\n\\nSyzbot reported that when searching for records in a directory where the\\ninode\u0027s i_size is corrupted and has a large value, memory access outside\\nthe folio/page range may occur, or a use-after-free bug may be detected if\\nKASAN is enabled.\\n\\nThis is because nilfs_last_byte(), which is called by nilfs_find_entry()\\nand others to calculate the number of valid bytes of directory data in a\\npage from i_size and the page index, loses the upper 32 bits of the 64-bit\\nsize information due to an inappropriate type of local variable to which\\nthe i_size value is assigned.\\n\\nThis caused a large byte offset value due to underflow in the end address\\ncalculation in the calling nilfs_find_entry(), resulting in memory access\\nthat exceeds the folio/page size.\\n\\nFix this issue by changing the type of the local variable causing the bit\\nloss from \\\"unsigned int\\\" to \\\"u64\\\".  The return value of nilfs_last_byte()\\nis also of type \\\"unsigned int\\\", but it is truncated so as not to exceed\\nPAGE_SIZE and no bit loss occurs, so no change is required.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-01-20T06:24:17.081Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-56619\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-02-11T15:45:22.383Z\", \"dateReserved\": \"2024-12-27T14:03:06.016Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-12-27T14:51:23.516Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.