cve-2024-35966
Vulnerability from cvelistv5
Published
2024-05-20 09:41
Modified
2025-02-02 10:14
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: Fix not validating setsockopt user input syzbot reported rfcomm_sock_setsockopt_old() is copying data without checking user input length. BUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old net/bluetooth/rfcomm/sock.c:632 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70 net/bluetooth/rfcomm/sock.c:673 Read of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064
Impacted products
Vendor Product Version
Linux Linux Version: 9f2c8a03fbb3048cf38b158f87aa0c3c09bca084
Version: 9f2c8a03fbb3048cf38b158f87aa0c3c09bca084
Version: 9f2c8a03fbb3048cf38b158f87aa0c3c09bca084
Version: 9f2c8a03fbb3048cf38b158f87aa0c3c09bca084
Version: 9f2c8a03fbb3048cf38b158f87aa0c3c09bca084
Version: 9f2c8a03fbb3048cf38b158f87aa0c3c09bca084
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": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-35966",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-28T19:28:34.251629Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:33:49.290Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T03:21:49.030Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/bluetooth/rfcomm/sock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d072ea24748189cd8f4a9c3f585ca9af073a0838",
              "status": "affected",
              "version": "9f2c8a03fbb3048cf38b158f87aa0c3c09bca084",
              "versionType": "git"
            },
            {
              "lessThan": "00767fbd67af70d7a550caa5b12d9515fa978bab",
              "status": "affected",
              "version": "9f2c8a03fbb3048cf38b158f87aa0c3c09bca084",
              "versionType": "git"
            },
            {
              "lessThan": "eea40d33bf936a5c7fb03c190e61e0cfee00e872",
              "status": "affected",
              "version": "9f2c8a03fbb3048cf38b158f87aa0c3c09bca084",
              "versionType": "git"
            },
            {
              "lessThan": "4ea65e2095e9bd151d0469328dd7fc2858feb546",
              "status": "affected",
              "version": "9f2c8a03fbb3048cf38b158f87aa0c3c09bca084",
              "versionType": "git"
            },
            {
              "lessThan": "c3f787a3eafe519c93df9abbb0ca5145861c8d0f",
              "status": "affected",
              "version": "9f2c8a03fbb3048cf38b158f87aa0c3c09bca084",
              "versionType": "git"
            },
            {
              "lessThan": "a97de7bff13b1cc825c1b1344eaed8d6c2d3e695",
              "status": "affected",
              "version": "9f2c8a03fbb3048cf38b158f87aa0c3c09bca084",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/bluetooth/rfcomm/sock.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.10.*",
              "status": "unaffected",
              "version": "5.10.234",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.107",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.47",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.8.*",
              "status": "unaffected",
              "version": "6.8.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.9",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: RFCOMM: Fix not validating setsockopt user input\n\nsyzbot reported rfcomm_sock_setsockopt_old() is copying data without\nchecking user input length.\n\nBUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset\ninclude/linux/sockptr.h:49 [inline]\nBUG: KASAN: slab-out-of-bounds in copy_from_sockptr\ninclude/linux/sockptr.h:55 [inline]\nBUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old\nnet/bluetooth/rfcomm/sock.c:632 [inline]\nBUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70\nnet/bluetooth/rfcomm/sock.c:673\nRead of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-02-02T10:14:31.750Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d072ea24748189cd8f4a9c3f585ca9af073a0838"
        },
        {
          "url": "https://git.kernel.org/stable/c/00767fbd67af70d7a550caa5b12d9515fa978bab"
        },
        {
          "url": "https://git.kernel.org/stable/c/eea40d33bf936a5c7fb03c190e61e0cfee00e872"
        },
        {
          "url": "https://git.kernel.org/stable/c/4ea65e2095e9bd151d0469328dd7fc2858feb546"
        },
        {
          "url": "https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f"
        },
        {
          "url": "https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695"
        }
      ],
      "title": "Bluetooth: RFCOMM: Fix not validating setsockopt user input",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-35966",
    "datePublished": "2024-05-20T09:41:55.838Z",
    "dateReserved": "2024-05-17T13:50:33.138Z",
    "dateUpdated": "2025-02-02T10:14:31.750Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-35966\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-05-20T10:15:11.580\",\"lastModified\":\"2025-02-02T11:15:07.630\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nBluetooth: RFCOMM: Fix not validating setsockopt user input\\n\\nsyzbot reported rfcomm_sock_setsockopt_old() is copying data without\\nchecking user input length.\\n\\nBUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset\\ninclude/linux/sockptr.h:49 [inline]\\nBUG: KASAN: slab-out-of-bounds in copy_from_sockptr\\ninclude/linux/sockptr.h:55 [inline]\\nBUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old\\nnet/bluetooth/rfcomm/sock.c:632 [inline]\\nBUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70\\nnet/bluetooth/rfcomm/sock.c:673\\nRead of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064\"},{\"lang\":\"es\",\"value\":\" En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: Bluetooth: RFCOMM: soluci\u00f3n al no validar la entrada del usuario de setsockopt. Syzbot inform\u00f3 que rfcomm_sock_setsockopt_old() est\u00e1 copiando datos sin verificar la longitud de la entrada del usuario. BUG: KASAN: slab fuera de los l\u00edmites en copy_from_sockptr_offset include/linux/sockptr.h:49 [en l\u00ednea] BUG: KASAN: slab fuera de los l\u00edmites en copy_from_sockptr include/linux/sockptr.h:55 [en l\u00ednea] ERROR: KASAN: losa fuera de los l\u00edmites en rfcomm_sock_setsockopt_old net/bluetooth/rfcomm/sock.c:632 [en l\u00ednea] BUG: KASAN: losa fuera de los l\u00edmites en rfcomm_sock_setsockopt+0x893/0xa70 net/bluetooth/rfcomm/ sock.c:673 Lectura de tama\u00f1o 4 en addr ffff8880209a8bc3 por tarea syz-executor632/5064\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/00767fbd67af70d7a550caa5b12d9515fa978bab\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4ea65e2095e9bd151d0469328dd7fc2858feb546\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d072ea24748189cd8f4a9c3f585ca9af073a0838\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/eea40d33bf936a5c7fb03c190e61e0cfee00e872\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T03:21:49.030Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-35966\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-28T19:28:34.251629Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-28T19:28:39.839Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"Bluetooth: RFCOMM: Fix not validating setsockopt user input\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"9f2c8a03fbb3048cf38b158f87aa0c3c09bca084\", \"lessThan\": \"d072ea24748189cd8f4a9c3f585ca9af073a0838\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"9f2c8a03fbb3048cf38b158f87aa0c3c09bca084\", \"lessThan\": \"00767fbd67af70d7a550caa5b12d9515fa978bab\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"9f2c8a03fbb3048cf38b158f87aa0c3c09bca084\", \"lessThan\": \"eea40d33bf936a5c7fb03c190e61e0cfee00e872\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"9f2c8a03fbb3048cf38b158f87aa0c3c09bca084\", \"lessThan\": \"4ea65e2095e9bd151d0469328dd7fc2858feb546\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"9f2c8a03fbb3048cf38b158f87aa0c3c09bca084\", \"lessThan\": \"c3f787a3eafe519c93df9abbb0ca5145861c8d0f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"9f2c8a03fbb3048cf38b158f87aa0c3c09bca084\", \"lessThan\": \"a97de7bff13b1cc825c1b1344eaed8d6c2d3e695\", \"versionType\": \"git\"}], \"programFiles\": [\"net/bluetooth/rfcomm/sock.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.10.234\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.178\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.107\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.47\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8.7\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.8.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"net/bluetooth/rfcomm/sock.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/d072ea24748189cd8f4a9c3f585ca9af073a0838\"}, {\"url\": \"https://git.kernel.org/stable/c/00767fbd67af70d7a550caa5b12d9515fa978bab\"}, {\"url\": \"https://git.kernel.org/stable/c/eea40d33bf936a5c7fb03c190e61e0cfee00e872\"}, {\"url\": \"https://git.kernel.org/stable/c/4ea65e2095e9bd151d0469328dd7fc2858feb546\"}, {\"url\": \"https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f\"}, {\"url\": \"https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nBluetooth: RFCOMM: Fix not validating setsockopt user input\\n\\nsyzbot reported rfcomm_sock_setsockopt_old() is copying data without\\nchecking user input length.\\n\\nBUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset\\ninclude/linux/sockptr.h:49 [inline]\\nBUG: KASAN: slab-out-of-bounds in copy_from_sockptr\\ninclude/linux/sockptr.h:55 [inline]\\nBUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old\\nnet/bluetooth/rfcomm/sock.c:632 [inline]\\nBUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70\\nnet/bluetooth/rfcomm/sock.c:673\\nRead of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-02-02T10:14:31.750Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-35966\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-02-02T10:14:31.750Z\", \"dateReserved\": \"2024-05-17T13:50:33.138Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-20T09:41:55.838Z\", \"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.