| | Exhibit 5.1 October 18, 2019 Investcorp Credit Management BDC, Inc. 65 East 55th Street, 15th Floor New York, NY 10022 Ladies and Gentlemen: We have acted as counsel to Investcorp Credit Management BDC, Inc. (formerly CM Finance Inc), a Maryland corporation (the “Company”), in connection with the registration statement on FormN-2 (FileNo. 333-223999) (as amended as of the date hereof, the “Registration Statement”) filed by the Company with the Securities and Exchange Commission (the “Commission”) under the Securities Act of 1933, as amended (the “Securities Act”), previously declared effective by the Commission, relating to the public offering of securities of the Company that may be offered by the Company from time to time as set forth in the prospectus dated April 10, 2019, which was included in Post-Effective Amendment No. 3 to the Registration Statement, and which forms a part of the Registration Statement (the “Prospectus”), and as may be set forth from time to time in one or more supplements to the Prospectus. This opinion letter is rendered in connection with the public offering of an additional $15,000,000 in aggregate principal amount (or up to $2,250,000 aggregate principal amount if the underwriters’ overallotment option is exercised in full) of the Company’s unsecured notes due 2023 (the “Notes”), as described in the Prospectus and a prospectus supplement dated October 16, 2019 (the “Prospectus Supplement”). All of the Notes are to be sold by the Company as described in the Registration Statement and related Prospectus and Prospectus Supplement. The Notes will be issued pursuant to the indenture, dated as of July 2, 2018, entered into between the Company and U.S. Bank National Association, as trustee (the “Trustee”), and as supplemented by a first supplemental indenture, substantially in the form filed as an exhibit to the Registration Statement, entered into between the Company and the Trustee on July 2, 2018 (collectively, the “Indenture”). As counsel to the Company, we have participated in the preparation of the Registration Statement and have examined the originals or copies of the following: |