Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-40058

cached_sha2_password crashes on zero-length password

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      mysql_sha2.c

      126
          pkt_len= (int)plain_text_len;
      127
        }
      128
        /* now pkt contains plaintext password */
      129
       
      130
        authstr= (struct digest*)info->auth_string;
      131
        sha256_crypt_r(pkt, pkt_len-1, authstr->salt, sizeof(authstr->salt),
      

      here pkt_len can be 0, it'll crash sha256_crypt_r.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 1h
                1h

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.