Skip to content

How to deal with libc crate bugs? #154

Closed

Description

@Shnatsel

Here is a buffer overflow in libc: rust-lang/libc#1501

However, it is exceedingly unlikely that anyone would actually write code that actually makes it exploitable, i.e. manipulates the len in that struct based on an attacker-controlled value.

libc is a transitive dependency of everything ever, so if we file an advisory we would spam people and cause a lot of churn for an issue that's unlikely to be triggered in practice. On the other hand, this leaves a potential vulnerability unreported. Thoughts?

Activity

  1. tarcieri commented on Sep 7, 2019

    @tarcieri
    Member

    Capturing nuances like low exploitability is something I was hoping to do with CVSS scores, although they're not supported in any current cargo-audit release, and for that to be useful here we'd have to set a default severity threshold which would ignore these sorts of advisories, making them of dubious value.

    Beyond that, it's the sort of thing it'd be nice to have a call graph analysis for: rustsec/rustsec#89

  2. Shnatsel commented on Sep 7, 2019

    @Shnatsel
    MemberAuthor

    I would not rely too much on graph analysis because people will need to analyze binaries as well (in fact I expect that to become the primary consumption mode of rustsec eventually) and call graph analysis on compiled binaries is impossible.

  3. alex commented on Sep 7, 2019

    @alex
    Member
  4. Shnatsel commented on Sep 7, 2019

    @Shnatsel
    MemberAuthor

    Github is great, but github is not where the software is being actually used. Updating github sources doesn't actually fix any binaries that people actually run. And tracking down the exact source for whatever you're running is much too cumbersome for people to bother. Hence rust-audit.

    I imagine this audit model will get a boost from e.g. cloud providers scanning people's Docker containers and VM images.

  5. pinkforest commented on Aug 13, 2022

    @pinkforest
    Contributor

    I'll convert this to discussion as we got these old Issues - keen to get them cleaned up and this seems like something we can not act on too much with any advisory.

  6. locked and limited conversation to collaborators on Aug 13, 2022
  7. converted this issue into a discussion #1347 on Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions